tx · 61o2cYusf63R7oR4pCLFQuDnN6H98XCZ2ixwoiGtbeot
3Mzf8dEhMVwkVeKsFKySnBC46AxBdSoipYz: -0.01400000 Waves
2019.11.20 01:40 [772648] smart account 3Mzf8dEhMVwkVeKsFKySnBC46AxBdSoipYz > SELF 0.00000000 Waves
{
"type": 13,
"id": "61o2cYusf63R7oR4pCLFQuDnN6H98XCZ2ixwoiGtbeot",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1574203191593,
"version": 1,
"sender": "3Mzf8dEhMVwkVeKsFKySnBC46AxBdSoipYz",
"senderPublicKey": "8snoAdVWzQMwgbGsPnxPBS54wa1k5n18DPVDMPSDQtxP",
"proofs": [
"kX1YyBab8xxEC74hU4qxEPEhwpN2LcytLLvtcgdn4cbAUtAiSqBTamMo5zcM3CfkuhqNAx3yezCJcnN3APWvCBg"
],
"script": "base64:AAIDAAAAAAAAAAcIARIDCgEBAAAAAQAAAAALVm90ZUFzc2V0SWQJAAJZAAAAAQIAAAAsRFdnd2NaVE1oU3ZueVlDb1dMUlVYWFNIMVJTa3pUaFhMSmh3dzlnd2txZG4AAAABAAAAAWkBAAAABHZvdGUAAAABAAAAAXYEAAAAA3BtdAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAABaQAAAAdwYXltZW50CQEAAAAHZXh0cmFjdAAAAAEIBQAAAAFpAAAAB3BheW1lbnQJAAACAAAAAQIAAAArSW1wb3NzaWJsZSB0byBWb3RlIHdpdGhvdXQgYXR0YWNoZWQgcGF5bWVudAQAAAAKcG10QXNzZXRJZAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAADcG10AAAAB2Fzc2V0SWQJAQAAAAdleHRyYWN0AAAAAQgFAAAAA3BtdAAAAAdhc3NldElkCQAAAgAAAAECAAAAIkltcG9zc2libGUgdG8gdXNlIFdBVkVTIGZvciBWb3RpbmcDCQEAAAACIT0AAAACBQAAAApwbXRBc3NldElkBQAAAAtWb3RlQXNzZXRJZAkAAAIAAAABAgAAABFXcm9uZyB2b3RlIHRva2VuIQMJAQAAAAIhPQAAAAIIBQAAAANwbXQAAAAGYW1vdW50AAAAAAAAAAACCQAAAgAAAAECAAAADHBheW1lbnQgIT0gMgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkABCUAAAABCAUAAAABaQAAAAZjYWxsZXIFAAAAAXYFAAAAA25pbAAAAAEAAAACdHgBAAAAEHN0YW5kYXJkVmVyaWZpZXIAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleR0TvIk=",
"chainId": 84,
"height": 772648,
"spentComplexity": 0
}
View: original | compacted
Prev: 2Wqb4u7gs3L4SPBUoaJawDacHxY4SDrhJhf2HRkSeJha
Next: none
Diff:
Old | New | | Differences |
---|
13 | 13 | | else throw("Impossible to use WAVES for Voting") |
---|
14 | 14 | | if ((pmtAssetId != VoteAssetId)) |
---|
15 | 15 | | then throw("Wrong vote token!") |
---|
16 | | - | else if ((pmt.amount == 2)) |
---|
17 | | - | then WriteSet([DataEntry(toString(i.caller), v)]) |
---|
18 | | - | else throw("payment != 2") |
---|
| 16 | + | else if ((pmt.amount != 2)) |
---|
| 17 | + | then throw("payment != 2") |
---|
| 18 | + | else WriteSet([DataEntry(toString(i.caller), v)]) |
---|
19 | 19 | | } |
---|
20 | 20 | | |
---|
21 | 21 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let VoteAssetId = fromBase58String("DWgwcZTMhSvnyYCoWLRUXXSH1RSkzThXLJhww9gwkqdn") |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func vote (v) = { |
---|
8 | 8 | | let pmt = if (isDefined(i.payment)) |
---|
9 | 9 | | then extract(i.payment) |
---|
10 | 10 | | else throw("Impossible to Vote without attached payment") |
---|
11 | 11 | | let pmtAssetId = if (isDefined(pmt.assetId)) |
---|
12 | 12 | | then extract(pmt.assetId) |
---|
13 | 13 | | else throw("Impossible to use WAVES for Voting") |
---|
14 | 14 | | if ((pmtAssetId != VoteAssetId)) |
---|
15 | 15 | | then throw("Wrong vote token!") |
---|
16 | | - | else if ((pmt.amount == 2)) |
---|
17 | | - | then WriteSet([DataEntry(toString(i.caller), v)]) |
---|
18 | | - | else throw("payment != 2") |
---|
| 16 | + | else if ((pmt.amount != 2)) |
---|
| 17 | + | then throw("payment != 2") |
---|
| 18 | + | else WriteSet([DataEntry(toString(i.caller), v)]) |
---|
19 | 19 | | } |
---|
20 | 20 | | |
---|
21 | 21 | | |
---|
22 | 22 | | @Verifier(tx) |
---|
23 | 23 | | func standardVerifier () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
24 | 24 | | |
---|