tx · D4tbYHsbXYRkLES6md1e1bvkrpTLo7Ds5hfiNvtsCZFf

3Mvqg45GNNEhYssByz8tT6BECpZd8wKyuki:  -0.01000000 Waves

2024.06.25 14:59 [3166239] smart account 3Mvqg45GNNEhYssByz8tT6BECpZd8wKyuki > SELF 0.00000000 Waves

{ "type": 13, "id": "D4tbYHsbXYRkLES6md1e1bvkrpTLo7Ds5hfiNvtsCZFf", "fee": 1000000, "feeAssetId": null, "timestamp": 1719316758191, "version": 2, "chainId": 84, "sender": "3Mvqg45GNNEhYssByz8tT6BECpZd8wKyuki", "senderPublicKey": "Em3xR3qCDVUJh4RYP61j2iaMKdEHYvyYEA4kmBMKQHLd", "proofs": [ "5GLbVECTe8rFQpfxSoz6kX8JruhzQfMWTAeTEVBK1SRgGqPmtrBmG1amErxWxWLsdmG8DRXvUcZ3r69iXZ5U3uPv" ], "script": "base64:CAIHCAISAwoBAQEBFHZvdGVySXNBbGxvd2VkVG9Wb3RlAQ52b3RlclB1YmxpY0tleQQNYWxla3NlaVB1YktleQEaAVRL82o5gOz3lqTb/kGhO6ljrmYJvKt/SJcECmFubmFQdWJLZXkBIJLt6fxA3eacJLG5vh+XqmU+fWUNDlcxUXVs3DZax3EPAwMJAQIhPQIFDnZvdGVyUHVibGljS2V5BQ1hbGVrc2VpUHViS2V5CQECIT0CBQ52b3RlclB1YmxpY0tleQUKYW5uYVB1YktleQcHBgEBaQEEdm90ZQEHdGhlVm90ZQMJAQEhAQkBFHZvdGVySXNBbGxvd2VkVG9Wb3RlAQgFAWkPY2FsbGVyUHVibGljS2V5CQACAQI7WW91IGNhbiBub3Qgdm90ZSBiZWNhdXNlIHlvdSBhcmUgbm90IGluIHRoZSBsaXN0IG9mIHZvdGVycyEED2RhdGFGcm9tU3RvcmFnZQkAmggCBQR0aGlzCQDYBAEIBQFpD2NhbGxlclB1YmxpY0tleQMJAQlpc0RlZmluZWQBBQ9kYXRhRnJvbVN0b3JhZ2UJAAIBAj5Zb3UgaGF2ZSBhbHJlYWR5IHZvdGVkISBWb3RpbmcgdGhlIHNlY29uZCB0aW1lIGlzIG5vdCBhbGxvd2VkLgkAlAoCCQDMCAIJAQxJbnRlZ2VyRW50cnkCCQDYBAEIBQFpD2NhbGxlclB1YmxpY0tleQUHdGhlVm90ZQUDbmlsBQR1bml0AGNrxzA=", "height": 3166239, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 69wgzt1EUdYZY3ku9gZhfj3NxcPr1tzLv2Gfcyp4tfNV Next: 2PjBwpUTwcW4x3qwpHtN5AQzZjg9gGy6gdLytKnnw7AD Diff:
OldNewDifferences
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func voterIsAllowedToVote (voterPublicKey) = {
5- let alekseiPubKey = base58'8QvKvspfNF6cUv2DFMCfvT8SrbraERqXpNMEMqBfJZ3e'
5+ let alekseiPubKey = base58'3Mvqg45GNNEhYssByz8tT6BECpZd8wKyuki'
66 let annaPubKey = base58'AtYwJTqWNfwYrPnWVvfmnPTSTEioiLFzUTcZVttgDj1x'
77 if (if ((voterPublicKey != alekseiPubKey))
88 then (voterPublicKey != annaPubKey)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 8 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func voterIsAllowedToVote (voterPublicKey) = {
5- let alekseiPubKey = base58'8QvKvspfNF6cUv2DFMCfvT8SrbraERqXpNMEMqBfJZ3e'
5+ let alekseiPubKey = base58'3Mvqg45GNNEhYssByz8tT6BECpZd8wKyuki'
66 let annaPubKey = base58'AtYwJTqWNfwYrPnWVvfmnPTSTEioiLFzUTcZVttgDj1x'
77 if (if ((voterPublicKey != alekseiPubKey))
88 then (voterPublicKey != annaPubKey)
99 else false)
1010 then false
1111 else true
1212 }
1313
1414
1515 @Callable(i)
1616 func vote (theVote) = if (!(voterIsAllowedToVote(i.callerPublicKey)))
1717 then throw("You can not vote because you are not in the list of voters!")
1818 else {
1919 let dataFromStorage = getInteger(this, toBase58String(i.callerPublicKey))
2020 if (isDefined(dataFromStorage))
2121 then throw("You have already voted! Voting the second time is not allowed.")
2222 else $Tuple2([IntegerEntry(toBase58String(i.callerPublicKey), theVote)], unit)
2323 }
2424
2525

github/deemru/w8io/026f985 
17.29 ms