tx · v4Gkc83p3GRLJEbpDV4GUjpQL6YCJfp7xkGTkch8Gxq

3Mt7AXACT4cUpYSUsWvVteVWgp8PWkLNx4B:  -0.01400000 Waves

2019.11.21 16:52 [775037] smart account 3Mt7AXACT4cUpYSUsWvVteVWgp8PWkLNx4B > SELF 0.00000000 Waves

{ "type": 13, "id": "v4Gkc83p3GRLJEbpDV4GUjpQL6YCJfp7xkGTkch8Gxq", "fee": 1400000, "feeAssetId": null, "timestamp": 1574344388785, "version": 1, "sender": "3Mt7AXACT4cUpYSUsWvVteVWgp8PWkLNx4B", "senderPublicKey": "dChBeLecnnA7TpnYDo4fiBJA1dCyJPLosQGVqf3FeN7", "proofs": [ "FWVijkVqGnkRtmcqwJGey8jm6UDAS4AHwViicZGE5iY5D4jVhijSxNLr3KRMpvPDRwXr97FF7mJ2Qaj7R75y1rq" ], "script": "base64:AAIDAAAAAAAAAAcIARIDCgEIAAAAAQEAAAAUdm90ZXJJc0FsbG93ZWRUb1ZvdGUAAAABAAAADnZvdGVyUHVibGljS2V5BAAAAAZQdWJLZXkBAAAAGgFULfkKQSVy4UYjkjdhZFRrZ7FQBPeLsSAMAwkBAAAAAiE9AAAAAgUAAAAOdm90ZXJQdWJsaWNLZXkFAAAABlB1YktleQYHAAAAAQAAAAFpAQAAAAR2b3RlAAAAAQAAAAd0aGVWb3RlBAAAAA9kYXRhRnJvbVN0b3JhZ2UJAAQdAAAAAgUAAAAEdGhpcwkAAlgAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkDCQEAAAAJaXNEZWZpbmVkAAAAAQUAAAAPZGF0YUZyb21TdG9yYWdlCQAAAgAAAAECAAAAYdCS0Ysg0YPQttC1INCz0L7Qu9C+0YHQvtCy0LDQu9C4ISDQn9C+0LLRgtC+0YDQvtC90L7QtSDQs9C+0LvQvtGB0L7QstCw0L3QuNC1INC30LDQv9GA0LXRidC10L3Qvi4JAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAJYAAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5BQAAAAd0aGVWb3RlBQAAAANuaWwAAAAALkAJ5Q==", "chainId": 84, "height": 775037, "spentComplexity": 0 } View: original | compacted Prev: 2ryue34dwMyM2BMc6uUW6fAaGTe9788wsh6tYQJg6kBy Next: none Diff:
OldNewDifferences
1111
1212 @Callable(i)
1313 func vote (theVote) = {
14- let dataFromStorage = getInteger(this, toBase58String(i.callerPublicKey))
14+ let dataFromStorage = getString(this, toBase58String(i.callerPublicKey))
1515 if (isDefined(dataFromStorage))
1616 then throw("Вы уже голосовали! Повтороное голосование запрещено.")
1717 else WriteSet([DataEntry(toBase58String(i.callerPublicKey), theVote)])
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func voterIsAllowedToVote (voterPublicKey) = {
55 let PubKey = base58'3Mt7AXACT4cUpYSUsWvVteVWgp8PWkLNx4B'
66 if ((voterPublicKey != PubKey))
77 then true
88 else false
99 }
1010
1111
1212 @Callable(i)
1313 func vote (theVote) = {
14- let dataFromStorage = getInteger(this, toBase58String(i.callerPublicKey))
14+ let dataFromStorage = getString(this, toBase58String(i.callerPublicKey))
1515 if (isDefined(dataFromStorage))
1616 then throw("Вы уже голосовали! Повтороное голосование запрещено.")
1717 else WriteSet([DataEntry(toBase58String(i.callerPublicKey), theVote)])
1818 }
1919
2020

github/deemru/w8io/026f985 
34.77 ms