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:
Old | New | | Differences |
---|
11 | 11 | | |
---|
12 | 12 | | @Callable(i) |
---|
13 | 13 | | func vote (theVote) = { |
---|
14 | | - | let dataFromStorage = getInteger(this, toBase58String(i.callerPublicKey)) |
---|
| 14 | + | let dataFromStorage = getString(this, toBase58String(i.callerPublicKey)) |
---|
15 | 15 | | if (isDefined(dataFromStorage)) |
---|
16 | 16 | | then throw("Вы уже голосовали! Повтороное голосование запрещено.") |
---|
17 | 17 | | else WriteSet([DataEntry(toBase58String(i.callerPublicKey), theVote)]) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func voterIsAllowedToVote (voterPublicKey) = { |
---|
5 | 5 | | let PubKey = base58'3Mt7AXACT4cUpYSUsWvVteVWgp8PWkLNx4B' |
---|
6 | 6 | | if ((voterPublicKey != PubKey)) |
---|
7 | 7 | | then true |
---|
8 | 8 | | else false |
---|
9 | 9 | | } |
---|
10 | 10 | | |
---|
11 | 11 | | |
---|
12 | 12 | | @Callable(i) |
---|
13 | 13 | | func vote (theVote) = { |
---|
14 | | - | let dataFromStorage = getInteger(this, toBase58String(i.callerPublicKey)) |
---|
| 14 | + | let dataFromStorage = getString(this, toBase58String(i.callerPublicKey)) |
---|
15 | 15 | | if (isDefined(dataFromStorage)) |
---|
16 | 16 | | then throw("Вы уже голосовали! Повтороное голосование запрещено.") |
---|
17 | 17 | | else WriteSet([DataEntry(toBase58String(i.callerPublicKey), theVote)]) |
---|
18 | 18 | | } |
---|
19 | 19 | | |
---|
20 | 20 | | |
---|