tx · 2ryue34dwMyM2BMc6uUW6fAaGTe9788wsh6tYQJg6kBy
3Mt7AXACT4cUpYSUsWvVteVWgp8PWkLNx4B: -0.01400000 Waves
2019.11.11 12:54 [760230] smart account 3Mt7AXACT4cUpYSUsWvVteVWgp8PWkLNx4B > SELF 0.00000000 Waves
{
"type": 13,
"id": "2ryue34dwMyM2BMc6uUW6fAaGTe9788wsh6tYQJg6kBy",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1573465940290,
"version": 1,
"sender": "3Mt7AXACT4cUpYSUsWvVteVWgp8PWkLNx4B",
"senderPublicKey": "dChBeLecnnA7TpnYDo4fiBJA1dCyJPLosQGVqf3FeN7",
"proofs": [
"2mfXZsbBv1XhjVjnDVSijzpLDWwQAMbtrLKAeoHXsmmadJr9Thumy8yHp4D3jx8k75VfoJdgHPQyg8fAiGEapeA8"
],
"script": "base64:AAIDAAAAAAAAAAcIARIDCgEBAAAAAQEAAAAUdm90ZXJJc0FsbG93ZWRUb1ZvdGUAAAABAAAADnZvdGVyUHVibGljS2V5BAAAAAZQdWJLZXkBAAAAGgFULfkKQSVy4UYjkjdhZFRrZ7FQBPeLsSAMAwkBAAAAAiE9AAAAAgUAAAAOdm90ZXJQdWJsaWNLZXkFAAAABlB1YktleQYHAAAAAQAAAAFpAQAAAAR2b3RlAAAAAQAAAAd0aGVWb3RlBAAAAA9kYXRhRnJvbVN0b3JhZ2UJAAQaAAAAAgUAAAAEdGhpcwkAAlgAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkDCQEAAAAJaXNEZWZpbmVkAAAAAQUAAAAPZGF0YUZyb21TdG9yYWdlCQAAAgAAAAECAAAAYdCS0Ysg0YPQttC1INCz0L7Qu9C+0YHQvtCy0LDQu9C4ISDQn9C+0LLRgtC+0YDQvtC90L7QtSDQs9C+0LvQvtGB0L7QstCw0L3QuNC1INC30LDQv9GA0LXRidC10L3Qvi4JAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAJYAAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5BQAAAAd0aGVWb3RlBQAAAANuaWwAAAAAE25csg==",
"chainId": 84,
"height": 760230,
"spentComplexity": 0
}
View: original | compacted
Prev: C5gDBKFjQyDjzEZFuJEm2U9Bbu7PMLTWcauzicqKgXz6
Next: v4Gkc83p3GRLJEbpDV4GUjpQL6YCJfp7xkGTkch8Gxq
Diff:
Old | New | | Differences |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func voterIsAllowedToVote (voterPublicKey) = { |
---|
5 | | - | let FunSpaceLabPubKey = base58'3Mt7AXACT4cUpYSUsWvVteVWgp8PWkLNx4B' |
---|
6 | | - | if ((voterPublicKey != FunSpaceLabPubKey)) |
---|
| 5 | + | let PubKey = base58'3Mt7AXACT4cUpYSUsWvVteVWgp8PWkLNx4B' |
---|
| 6 | + | if ((voterPublicKey != PubKey)) |
---|
7 | 7 | | then true |
---|
8 | 8 | | else false |
---|
9 | 9 | | } |
---|
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 | | - | let FunSpaceLabPubKey = base58'3Mt7AXACT4cUpYSUsWvVteVWgp8PWkLNx4B' |
---|
6 | | - | if ((voterPublicKey != FunSpaceLabPubKey)) |
---|
| 5 | + | let PubKey = base58'3Mt7AXACT4cUpYSUsWvVteVWgp8PWkLNx4B' |
---|
| 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 | 14 | | let dataFromStorage = getInteger(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 | | |
---|