tx · 37L9qf2DxNNdNQaTFtu6N4rXBEXoELCoYgBJVr1CLf5H
3N3wG59BhyFv6WpcU4ufQwEKQc3P2EgdM3D: -0.04000000 Waves
2019.10.11 10:42 [714917] smart account 3N3wG59BhyFv6WpcU4ufQwEKQc3P2EgdM3D > SELF 0.00000000 Waves
{
"type": 13,
"id": "37L9qf2DxNNdNQaTFtu6N4rXBEXoELCoYgBJVr1CLf5H",
"fee": 4000000,
"feeAssetId": null,
"timestamp": 1570779703854,
"version": 1,
"sender": "3N3wG59BhyFv6WpcU4ufQwEKQc3P2EgdM3D",
"senderPublicKey": "Hxqy6r7HGZfDUPVgADrFFRvbDErnK5HxWVeskMxaNSSK",
"proofs": [
"4tnE1DA9BWfCsRezDRMEyeC4Uo36Zn1WMYSK6JvFgZfKGSUcADghzBJqhAuBPFqktGti98tWLPawMndiWdVPiCvp"
],
"script": "base64:AAIDAAAAAAAAAAcIARIDCgEIAAAAAQAAAAAFb3duZXIBAAAAIPwJTYKEsuntn/tcgnkI9gmYhsnCV0IADAkWhSTj0ER4AAAAAQAAAAFpAQAAAAR2b3RlAAAAAQAAAAF2BAAAAA9kYXRhRnJvbVN0b3JhZ2UJAAQdAAAAAgUAAAAEdGhpcwkAAlgAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAJYAAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5BQAAAAF2BQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAVvd25lcgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXSW52b2tlU2NyaXB0VHJhbnNhY3Rpb24EAAAAAWMFAAAAByRtYXRjaDAGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDAGBxufPaw=",
"chainId": 84,
"height": 714917,
"spentComplexity": 0
}
View: original | compacted
Prev: CR6jc2Av9in7ZJWVpUs6HpkcvE6Hpmp56qSJfYGqd3XA
Next: 8FbHBAjQsMgNaMpnMCNbSwJJBYsvoCipVcAvLX6qafvC
Diff:
Old | New | | Differences |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func vote (v) = { |
---|
8 | 8 | | let dataFromStorage = getString(this, toBase58String(i.callerPublicKey)) |
---|
9 | | - | if (isDefined(dataFromStorage)) |
---|
10 | | - | then throw("Вы уже голосовали") |
---|
11 | | - | else WriteSet([DataEntry(toBase58String(i.callerPublicKey), v)]) |
---|
| 9 | + | WriteSet([DataEntry(toBase58String(i.callerPublicKey), v)]) |
---|
12 | 10 | | } |
---|
13 | 11 | | |
---|
14 | 12 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let owner = base58'Hxqy6r7HGZfDUPVgADrFFRvbDErnK5HxWVeskMxaNSSK' |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func vote (v) = { |
---|
8 | 8 | | let dataFromStorage = getString(this, toBase58String(i.callerPublicKey)) |
---|
9 | | - | if (isDefined(dataFromStorage)) |
---|
10 | | - | then throw("Вы уже голосовали") |
---|
11 | | - | else WriteSet([DataEntry(toBase58String(i.callerPublicKey), v)]) |
---|
| 9 | + | WriteSet([DataEntry(toBase58String(i.callerPublicKey), v)]) |
---|
12 | 10 | | } |
---|
13 | 11 | | |
---|
14 | 12 | | |
---|
15 | 13 | | @Verifier(tx) |
---|
16 | 14 | | func verify () = match tx { |
---|
17 | 15 | | case t: SetScriptTransaction => |
---|
18 | 16 | | sigVerify(tx.bodyBytes, tx.proofs[0], owner) |
---|
19 | 17 | | case c: InvokeScriptTransaction => |
---|
20 | 18 | | true |
---|
21 | 19 | | case d: DataTransaction => |
---|
22 | 20 | | true |
---|
23 | 21 | | case _ => |
---|
24 | 22 | | false |
---|
25 | 23 | | } |
---|
26 | 24 | | |
---|