tx · Fib5sKbAeVcAb7HEhhvhHa1AjRv18PKR4VvbNR1eiRHp
3Mzf8dEhMVwkVeKsFKySnBC46AxBdSoipYz: -0.05000000 Waves
2019.11.17 00:48 [768228] smart account 3Mzf8dEhMVwkVeKsFKySnBC46AxBdSoipYz > SELF 0.00000000 Waves
{
"type": 13,
"id": "Fib5sKbAeVcAb7HEhhvhHa1AjRv18PKR4VvbNR1eiRHp",
"fee": 5000000,
"feeAssetId": null,
"timestamp": 1573940945499,
"version": 1,
"sender": "3Mzf8dEhMVwkVeKsFKySnBC46AxBdSoipYz",
"senderPublicKey": "8snoAdVWzQMwgbGsPnxPBS54wa1k5n18DPVDMPSDQtxP",
"proofs": [
"5Ysw76SnZSh1udM2ggHNq7N9QQSmL9Nh6UT15FGahZs9QGRbYicjWQRkoQhXqJBoNfEn6WEPd19j6g2LHUft8ANu"
],
"script": "base64:AAIDAAAAAAAAAAcIARIDCgEBAAAAAQAAAAALVm90ZUFzc2V0SWQJAAJZAAAAAQIAAAAsRFdnd2NaVE1oU3ZueVlDb1dMUlVYWFNIMVJTa3pUaFhMSmh3dzlnd2txZG4AAAABAAAAAWkBAAAABHZvdGUAAAABAAAAAXYEAAAAA3BtdAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAABaQAAAAdwYXltZW50CQEAAAAHZXh0cmFjdAAAAAEIBQAAAAFpAAAAB3BheW1lbnQJAAACAAAAAQIAAAArSW1wb3NzaWJsZSB0byBWb3RlIHdpdGhvdXQgYXR0YWNoZWQgcGF5bWVudAQAAAAKcG10QXNzZXRJZAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAADcG10AAAAB2Fzc2V0SWQJAQAAAAdleHRyYWN0AAAAAQgFAAAAA3BtdAAAAAdhc3NldElkCQAAAgAAAAECAAAAIkltcG9zc2libGUgdG8gdXNlIFdBVkVTIGZvciBWb3RpbmcJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAJYAAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5BQAAAAtWb3RlQXNzZXRJZAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAQc3RhbmRhcmRWZXJpZmllcgAAAAAG6Rf1aQ==",
"chainId": 84,
"height": 768228,
"spentComplexity": 0
}
View: original | compacted
Prev: 6vajSGPxximC3pmkXRUmTRxg66bsVrq3Aus1HbBAAyQp
Next: G9HcYdApY9FACbVd26nvzdRfTuStakWhLEp3nbVSBZnA
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | let a = fromBase58String("DWgwcZTMhSvnyYCoWLRUXXSH1RSkzThXLJhww9gwkqdn") |
---|
4 | 5 | | |
---|
5 | | - | |
---|
6 | | - | @Callable(a) |
---|
7 | | - | func vote (b) = { |
---|
8 | | - | let c = if (isDefined(a.payment)) |
---|
9 | | - | then extract(a.payment) |
---|
| 6 | + | @Callable(b) |
---|
| 7 | + | func vote (c) = { |
---|
| 8 | + | let d = if (isDefined(b.payment)) |
---|
| 9 | + | then extract(b.payment) |
---|
10 | 10 | | else throw("Impossible to Vote without attached payment") |
---|
11 | | - | let d = if (isDefined(c.assetId)) |
---|
12 | | - | then extract(c.assetId) |
---|
| 11 | + | let e = if (isDefined(d.assetId)) |
---|
| 12 | + | then extract(d.assetId) |
---|
13 | 13 | | else throw("Impossible to use WAVES for Voting") |
---|
14 | | - | WriteSet([DataEntry(toBase58String(a.callerPublicKey), d)]) |
---|
| 14 | + | WriteSet([DataEntry(toBase58String(b.callerPublicKey), a)]) |
---|
15 | 15 | | } |
---|
16 | 16 | | |
---|
17 | 17 | | |
---|
18 | | - | @Verifier(e) |
---|
19 | | - | func f () = true |
---|
| 18 | + | @Verifier(f) |
---|
| 19 | + | func g () = true |
---|
20 | 20 | | |
---|