tx · J42wkLHaKD5KXQoGgMhS1Aq7od693R1w5Rhp3iLYH92X
3N2icgpJnXhcYab7KQrwqWsV4LwSF25C1Ep: -0.01400000 Waves
2019.07.09 13:33 [577962] smart account 3N2icgpJnXhcYab7KQrwqWsV4LwSF25C1Ep > SELF 0.00000000 Waves
{
"type": 13,
"id": "J42wkLHaKD5KXQoGgMhS1Aq7od693R1w5Rhp3iLYH92X",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1562668364902,
"version": 1,
"sender": "3N2icgpJnXhcYab7KQrwqWsV4LwSF25C1Ep",
"senderPublicKey": "BJAeTqNbDSA5FiYihZZaSWvD6XL5XjpqVXbTGerBJjRK",
"proofs": [
"4LbUMjPt8HaixFuBdtBPZVFK2EUg8vokofhUe3zfFyW6Y8YkFV7yAVWYvbd9rJM81An4usKXMQ631JGKNKp9mBe5"
],
"script": "base64:AAIDAAAAAAAAAAAAAAABAQAAABJ1c2VySGFzQWRtaW5BY2Nlc3MAAAABAAAADXVzZXJQdWJsaWNLZXkEAAAAC2FkbWluUHViS2V5AQAAACCY+qZRd1gHYRktvSnZH9tBqdE0k+t7zknFMQp1UqdbEgMJAQAAAAIhPQAAAAIFAAAADXVzZXJQdWJsaWNLZXkFAAAAC2FkbWluUHViS2V5BwYAAAACAAAAAWkBAAAAA2JldAAAAAEAAAAFcHJpY2UJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAJYAAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5BQAAAAVwcmljZQUAAAADbmlsAAAAAWkBAAAABXN0YXJ0AAAAAAMJAQAAAAEhAAAAAQkBAAAAEnVzZXJIYXNBZG1pbkFjY2VzcwAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQkAAAIAAAABAgAAABNZb3UgaGF2ZSBubyBhY2Nlc3MhCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAVzdGFydAkAAlgAAAABCAUAAAABaQAAAA10cmFuc2FjdGlvbklkBQAAAANuaWwAAAAAqjbsuA==",
"chainId": 84,
"height": 577962,
"spentComplexity": 0
}
View: original | compacted
Prev: 6asJmsafyWTooFTJKVG5WBb8gozjRDeZ7pWK6yDnaWmf
Next: G4i7mtZVUgVRAU94KmjGVcLbBNp4ZPCGRr5jEMAQEkqX
Diff:
Old | New | | Differences |
---|
17 | 17 | | @Callable(i) |
---|
18 | 18 | | func start () = if (!(userHasAdminAccess(i.callerPublicKey))) |
---|
19 | 19 | | then throw("You have no access!") |
---|
20 | | - | else WriteSet([DataEntry("start", i.transactionId)]) |
---|
| 20 | + | else WriteSet([DataEntry("start", toBase58String(i.transactionId))]) |
---|
21 | 21 | | |
---|
22 | 22 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func userHasAdminAccess (userPublicKey) = { |
---|
5 | 5 | | let adminPubKey = base58'BJAeTqNbDSA5FiYihZZaSWvD6XL5XjpqVXbTGerBJjRK' |
---|
6 | 6 | | if ((userPublicKey != adminPubKey)) |
---|
7 | 7 | | then false |
---|
8 | 8 | | else true |
---|
9 | 9 | | } |
---|
10 | 10 | | |
---|
11 | 11 | | |
---|
12 | 12 | | @Callable(i) |
---|
13 | 13 | | func bet (price) = WriteSet([DataEntry(toBase58String(i.callerPublicKey), price)]) |
---|
14 | 14 | | |
---|
15 | 15 | | |
---|
16 | 16 | | |
---|
17 | 17 | | @Callable(i) |
---|
18 | 18 | | func start () = if (!(userHasAdminAccess(i.callerPublicKey))) |
---|
19 | 19 | | then throw("You have no access!") |
---|
20 | | - | else WriteSet([DataEntry("start", i.transactionId)]) |
---|
| 20 | + | else WriteSet([DataEntry("start", toBase58String(i.transactionId))]) |
---|
21 | 21 | | |
---|
22 | 22 | | |
---|