tx · 7aMzKBMQQHy3MNFahrUhEYfkXybexTaGWB1xBJUzf44o

3Mzf8dEhMVwkVeKsFKySnBC46AxBdSoipYz:  -0.01400000 Waves

2019.11.17 01:06 [768246] smart account 3Mzf8dEhMVwkVeKsFKySnBC46AxBdSoipYz > SELF 0.00000000 Waves

{ "type": 13, "id": "7aMzKBMQQHy3MNFahrUhEYfkXybexTaGWB1xBJUzf44o", "fee": 1400000, "feeAssetId": null, "timestamp": 1573941956052, "version": 1, "sender": "3Mzf8dEhMVwkVeKsFKySnBC46AxBdSoipYz", "senderPublicKey": "8snoAdVWzQMwgbGsPnxPBS54wa1k5n18DPVDMPSDQtxP", "proofs": [ "3Hx4LTjtximXiEZz5nPaKpJhrvfYWx3JvgPpnYaWUQvpF3jT1EVdwBWQ8dJh9nzvnU1VWMKvt51Mj1DghXD8Mzsc" ], "script": "base64:AAIDAAAAAAAAAAcIARIDCgEBAAAAAQAAAAALVm90ZUFzc2V0SWQJAAJZAAAAAQIAAAAsRFdnd2NaVE1oU3ZueVlDb1dMUlVYWFNIMVJTa3pUaFhMSmh3dzlnd2txZG4AAAABAAAAAWkBAAAABHZvdGUAAAABAAAAAXYEAAAAA3BtdAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAABaQAAAAdwYXltZW50CQEAAAAHZXh0cmFjdAAAAAEIBQAAAAFpAAAAB3BheW1lbnQJAAACAAAAAQIAAAArSW1wb3NzaWJsZSB0byBWb3RlIHdpdGhvdXQgYXR0YWNoZWQgcGF5bWVudAQAAAAKcG10QXNzZXRJZAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAADcG10AAAAB2Fzc2V0SWQJAQAAAAdleHRyYWN0AAAAAQgFAAAAA3BtdAAAAAdhc3NldElkCQAAAgAAAAECAAAAIkltcG9zc2libGUgdG8gdXNlIFdBVkVTIGZvciBWb3RpbmcDCQAAAAAAAAIIBQAAAANwbXQAAAAGYW1vdW50AAAAAAAAAAACCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQACWAAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQUAAAALVm90ZUFzc2V0SWQJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkAAlgAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkCAAAAAl8yBQAAAApwbXRBc3NldElkBQAAAANuaWwJAAACAAAAAQIAAAAMcGF5bWVudCAhPSAyAAAAAQAAAAJ0eAEAAAAQc3RhbmRhcmRWZXJpZmllcgAAAAAGaWM1Aw==", "chainId": 84, "height": 768246, "spentComplexity": 0 } View: original | compacted Prev: G9HcYdApY9FACbVd26nvzdRfTuStakWhLEp3nbVSBZnA Next: Ct5wZ8UDp6LrpHjy6xzPoGdNb6nJCNk1KEMcFwQd5ZT7 Diff:
OldNewDifferences
1111 let pmtAssetId = if (isDefined(pmt.assetId))
1212 then extract(pmt.assetId)
1313 else throw("Impossible to use WAVES for Voting")
14- WriteSet([DataEntry(toBase58String(i.callerPublicKey), VoteAssetId), DataEntry((toBase58String(i.callerPublicKey) + "_2"), pmtAssetId)])
14+ if ((pmt.amount == 2))
15+ then WriteSet([DataEntry(toBase58String(i.callerPublicKey), VoteAssetId), DataEntry((toBase58String(i.callerPublicKey) + "_2"), pmtAssetId)])
16+ else throw("payment != 2")
1517 }
1618
1719
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")
14- WriteSet([DataEntry(toBase58String(i.callerPublicKey), VoteAssetId), DataEntry((toBase58String(i.callerPublicKey) + "_2"), pmtAssetId)])
14+ if ((pmt.amount == 2))
15+ then WriteSet([DataEntry(toBase58String(i.callerPublicKey), VoteAssetId), DataEntry((toBase58String(i.callerPublicKey) + "_2"), pmtAssetId)])
16+ else throw("payment != 2")
1517 }
1618
1719
1820 @Verifier(tx)
1921 func standardVerifier () = true
2022

github/deemru/w8io/026f985 
25.20 ms