tx · FmsS2LDXXR2MUqVVCZrp6psnzBnVpCttpzoS5r15RQVU
3MsEJrB3oUH9ZGDNg4LX9X3pFndvgFYZ59J: -0.04000000 Waves
2021.01.12 14:32 [1350184] smart account 3MsEJrB3oUH9ZGDNg4LX9X3pFndvgFYZ59J > SELF 0.00000000 Waves
{
"type": 13,
"id": "FmsS2LDXXR2MUqVVCZrp6psnzBnVpCttpzoS5r15RQVU",
"fee": 4000000,
"feeAssetId": null,
"timestamp": 1610451116893,
"version": 2,
"chainId": 84,
"sender": "3MsEJrB3oUH9ZGDNg4LX9X3pFndvgFYZ59J",
"senderPublicKey": "GKuRd4gUtBWhVKaA4VXLVMM7uJ7898RkVhTtAtzvRiQu",
"proofs": [
"4sYuC9KHJ6XAAfiA6G9g7HfBwp3DtL4kRvtQnZKhKXSUC4vuTup5nVUQQ1kkT92SfYSdYxsweaw7jXVT6WD1p8ii"
],
"script": "base64:AAIDAAAAAAAAAAcIARIDCgEBAAAAAQEAAAAUdm90ZXJJc0FsbG93ZWRUb1ZvdGUAAAABAAAADnZvdGVyUHVibGljS2V5BAAAAAtUYWl3b1B1YktleQEAAAAgTK5fyE+KWHR8t1VdKEI5T5VWFl2cALyiT18qDqYNyR8EAAAADk9iaW5uYXlhUHViS2V5AQAAACAaK5CfA1i4VLFQds+prQgGlHRe2n7eDLPSqIrRn8yuTgMDCQEAAAACIT0AAAACBQAAAA52b3RlclB1YmxpY0tleQUAAAALVGFpd29QdWJLZXkJAQAAAAIhPQAAAAIFAAAADnZvdGVyUHVibGljS2V5BQAAAA5PYmlubmF5YVB1YktleQcHBgAAAAEAAAABaQEAAAAEdm90ZQAAAAEAAAAHdGhlVm90ZQMJAQAAAAEhAAAAAQkBAAAAFHZvdGVySXNBbGxvd2VkVG9Wb3RlAAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5CQAAAgAAAAECAAAAO1lvdSBjYW4gbm90IHZvdGUgYmVjYXVzZSB5b3UgYXJlIG5vdCBpbiB0aGUgbGlzdCBvZiB2b3RlcnMhBAAAAA9kYXRhRnJvbVN0b3JhZ2UJAAQaAAAAAgUAAAAEdGhpcwkAAlgAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkDCQEAAAAJaXNEZWZpbmVkAAAAAQUAAAAPZGF0YUZyb21TdG9yYWdlCQAAAgAAAAECAAAAPllvdSBoYXZlIGFscmVhZHkgdm90ZWQhIFZvdGluZyB0aGUgc2Vjb25kIHRpbWUgaXMgbm90IGFsbG93ZWQuCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQACWAAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQUAAAAHdGhlVm90ZQUAAAADbmlsAAAAAKrfgBs=",
"height": 1350184,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: GYo7VVLBhQePwZAnVBq45VGszVhyBEKWAFRCRGzYHFW6
Next: none
Diff:
Old | New | | Differences |
---|
4 | 4 | | func voterIsAllowedToVote (voterPublicKey) = { |
---|
5 | 5 | | let TaiwoPubKey = base58'6ALCjv52TqgGRbEU7nCM381sTRxn95rDDUhFq5jnBcMC' |
---|
6 | 6 | | let ObinnayaPubKey = base58'2mA8VaFa6HZWDh9zYKUg4xiFnbwBstTw7ofux2rHnRRP' |
---|
7 | | - | if (if ((voterPublicKey != ObinnayaPubKey)) |
---|
| 7 | + | if (if ((voterPublicKey != TaiwoPubKey)) |
---|
8 | 8 | | then (voterPublicKey != ObinnayaPubKey) |
---|
9 | 9 | | else false) |
---|
10 | 10 | | then false |
---|
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 TaiwoPubKey = base58'6ALCjv52TqgGRbEU7nCM381sTRxn95rDDUhFq5jnBcMC' |
---|
6 | 6 | | let ObinnayaPubKey = base58'2mA8VaFa6HZWDh9zYKUg4xiFnbwBstTw7ofux2rHnRRP' |
---|
7 | | - | if (if ((voterPublicKey != ObinnayaPubKey)) |
---|
| 7 | + | if (if ((voterPublicKey != TaiwoPubKey)) |
---|
8 | 8 | | then (voterPublicKey != ObinnayaPubKey) |
---|
9 | 9 | | else false) |
---|
10 | 10 | | then false |
---|
11 | 11 | | else true |
---|
12 | 12 | | } |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | @Callable(i) |
---|
16 | 16 | | func vote (theVote) = if (!(voterIsAllowedToVote(i.callerPublicKey))) |
---|
17 | 17 | | then throw("You can not vote because you are not in the list of voters!") |
---|
18 | 18 | | else { |
---|
19 | 19 | | let dataFromStorage = getInteger(this, toBase58String(i.callerPublicKey)) |
---|
20 | 20 | | if (isDefined(dataFromStorage)) |
---|
21 | 21 | | then throw("You have already voted! Voting the second time is not allowed.") |
---|
22 | 22 | | else WriteSet([DataEntry(toBase58String(i.callerPublicKey), theVote)]) |
---|
23 | 23 | | } |
---|
24 | 24 | | |
---|
25 | 25 | | |
---|