tx · DJYdgpgEYJe3yhYLE7USvoMX627dwUdMAU6RBp6BcX2R

3Mzf8dEhMVwkVeKsFKySnBC46AxBdSoipYz:  -0.01400000 Waves

2019.11.20 01:25 [772629] smart account 3Mzf8dEhMVwkVeKsFKySnBC46AxBdSoipYz > SELF 0.00000000 Waves

{ "type": 13, "id": "DJYdgpgEYJe3yhYLE7USvoMX627dwUdMAU6RBp6BcX2R", "fee": 1400000, "feeAssetId": null, "timestamp": 1574202278010, "version": 1, "sender": "3Mzf8dEhMVwkVeKsFKySnBC46AxBdSoipYz", "senderPublicKey": "8snoAdVWzQMwgbGsPnxPBS54wa1k5n18DPVDMPSDQtxP", "proofs": [ "4vSrLxn1NKpngtUnBmZPwdxawcsP2hDrcG8L54oMW19Uq2nXfYRpYaUqEqdzgDEjkpqVDMb928ZgfXy62QpKk1oY" ], "script": "base64:AAIDAAAAAAAAAAcIARIDCgEBAAAAAQAAAAALVm90ZUFzc2V0SWQJAAJZAAAAAQIAAAAsRFdnd2NaVE1oU3ZueVlDb1dMUlVYWFNIMVJTa3pUaFhMSmh3dzlnd2txZG4AAAABAAAAAWkBAAAABHZvdGUAAAABAAAAAXYEAAAAA3BtdAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAABaQAAAAdwYXltZW50CQEAAAAHZXh0cmFjdAAAAAEIBQAAAAFpAAAAB3BheW1lbnQJAAACAAAAAQIAAAArSW1wb3NzaWJsZSB0byBWb3RlIHdpdGhvdXQgYXR0YWNoZWQgcGF5bWVudAQAAAAKcG10QXNzZXRJZAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAADcG10AAAAB2Fzc2V0SWQJAQAAAAdleHRyYWN0AAAAAQgFAAAAA3BtdAAAAAdhc3NldElkCQAAAgAAAAECAAAAIkltcG9zc2libGUgdG8gdXNlIFdBVkVTIGZvciBWb3RpbmcDCQEAAAACIT0AAAACBQAAAApwbXRBc3NldElkBQAAAAtWb3RlQXNzZXRJZAkAAAIAAAABAgAAABFXcm9uZyB2b3RlIHRva2VuIQMJAAAAAAAAAggFAAAAA3BtdAAAAAZhbW91bnQAAAAAAAAAAAIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyBQAAAAF2BQAAAANuaWwJAAACAAAAAQIAAAAMcGF5bWVudCAhPSAyAAAAAQAAAAJ0eAEAAAAQc3RhbmRhcmRWZXJpZmllcgAAAAAG0JLwog==", "chainId": 84, "height": 772629, "spentComplexity": 0 } View: original | compacted Prev: J7yvFATgUrjBUzAugzfHvnqd7BPYcjuZq9L6ZYZthric Next: 2Wqb4u7gs3L4SPBUoaJawDacHxY4SDrhJhf2HRkSeJha Diff:
OldNewDifferences
1414 if ((pmtAssetId != VoteAssetId))
1515 then throw("Wrong vote token!")
1616 else if ((pmt.amount == 2))
17- then WriteSet([DataEntry(toBase58String(i.callerPublicKey), toString(i.caller))])
17+ then WriteSet([DataEntry(toString(i.caller), v)])
1818 else throw("payment != 2")
1919 }
2020
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let VoteAssetId = fromBase58String("DWgwcZTMhSvnyYCoWLRUXXSH1RSkzThXLJhww9gwkqdn")
55
66 @Callable(i)
77 func vote (v) = {
88 let pmt = if (isDefined(i.payment))
99 then extract(i.payment)
1010 else throw("Impossible to Vote without attached payment")
1111 let pmtAssetId = if (isDefined(pmt.assetId))
1212 then extract(pmt.assetId)
1313 else throw("Impossible to use WAVES for Voting")
1414 if ((pmtAssetId != VoteAssetId))
1515 then throw("Wrong vote token!")
1616 else if ((pmt.amount == 2))
17- then WriteSet([DataEntry(toBase58String(i.callerPublicKey), toString(i.caller))])
17+ then WriteSet([DataEntry(toString(i.caller), v)])
1818 else throw("payment != 2")
1919 }
2020
2121
2222 @Verifier(tx)
2323 func standardVerifier () = true
2424

github/deemru/w8io/026f985 
23.62 ms