tx · G9HcYdApY9FACbVd26nvzdRfTuStakWhLEp3nbVSBZnA
3Mzf8dEhMVwkVeKsFKySnBC46AxBdSoipYz: -0.05000000 Waves
2019.11.17 00:50 [768230] smart account 3Mzf8dEhMVwkVeKsFKySnBC46AxBdSoipYz > SELF 0.00000000 Waves
{
"type": 13,
"id": "G9HcYdApY9FACbVd26nvzdRfTuStakWhLEp3nbVSBZnA",
"fee": 5000000,
"feeAssetId": null,
"timestamp": 1573941027611,
"version": 1,
"sender": "3Mzf8dEhMVwkVeKsFKySnBC46AxBdSoipYz",
"senderPublicKey": "8snoAdVWzQMwgbGsPnxPBS54wa1k5n18DPVDMPSDQtxP",
"proofs": [
"5BpT7DhCtczt7oUof8faQY3ASNjT3PbSoXMfKUUrpKB2H5xpEnEpXwQ68ues3CkNiVn775EB3fTjHGcgWbrcZLec"
],
"script": "base64:AAIDAAAAAAAAAAcIARIDCgEBAAAAAQAAAAALVm90ZUFzc2V0SWQJAAJZAAAAAQIAAAAsRFdnd2NaVE1oU3ZueVlDb1dMUlVYWFNIMVJTa3pUaFhMSmh3dzlnd2txZG4AAAABAAAAAWkBAAAABHZvdGUAAAABAAAAAXYEAAAAA3BtdAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAABaQAAAAdwYXltZW50CQEAAAAHZXh0cmFjdAAAAAEIBQAAAAFpAAAAB3BheW1lbnQJAAACAAAAAQIAAAArSW1wb3NzaWJsZSB0byBWb3RlIHdpdGhvdXQgYXR0YWNoZWQgcGF5bWVudAQAAAAKcG10QXNzZXRJZAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAADcG10AAAAB2Fzc2V0SWQJAQAAAAdleHRyYWN0AAAAAQgFAAAAA3BtdAAAAAdhc3NldElkCQAAAgAAAAECAAAAIkltcG9zc2libGUgdG8gdXNlIFdBVkVTIGZvciBWb3RpbmcJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAJYAAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5BQAAAAtWb3RlQXNzZXRJZAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQACWAAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQIAAAACXzIFAAAACnBtdEFzc2V0SWQFAAAAA25pbAAAAAEAAAACdHgBAAAAEHN0YW5kYXJkVmVyaWZpZXIAAAAABlBD50Y=",
"chainId": 84,
"height": 768230,
"spentComplexity": 0
}
View: original | compacted
Prev: Fib5sKbAeVcAb7HEhhvhHa1AjRv18PKR4VvbNR1eiRHp
Next: 7aMzKBMQQHy3MNFahrUhEYfkXybexTaGWB1xBJUzf44o
Diff:
Old | New | | Differences |
---|
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 | | - | WriteSet([DataEntry(toBase58String(i.callerPublicKey), VoteAssetId)]) |
---|
| 14 | + | WriteSet([DataEntry(toBase58String(i.callerPublicKey), VoteAssetId), DataEntry((toBase58String(i.callerPublicKey) + "_2"), pmtAssetId)]) |
---|
15 | 15 | | } |
---|
16 | 16 | | |
---|
17 | 17 | | |
---|
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 | | - | WriteSet([DataEntry(toBase58String(i.callerPublicKey), VoteAssetId)]) |
---|
| 14 | + | WriteSet([DataEntry(toBase58String(i.callerPublicKey), VoteAssetId), DataEntry((toBase58String(i.callerPublicKey) + "_2"), pmtAssetId)]) |
---|
15 | 15 | | } |
---|
16 | 16 | | |
---|
17 | 17 | | |
---|
18 | 18 | | @Verifier(tx) |
---|
19 | 19 | | func standardVerifier () = true |
---|
20 | 20 | | |
---|