tx · c2qYPWAvbu8awnbWNArWowWKRaExBw4e6sVAbJtTQfa
3MvYrCuZcSEEpaonJMECNuAgua1N1pP4QLv: -0.01400000 Waves
2019.11.08 11:22 [755724] smart account 3MvYrCuZcSEEpaonJMECNuAgua1N1pP4QLv > SELF 0.00000000 Waves
{
"type": 13,
"id": "c2qYPWAvbu8awnbWNArWowWKRaExBw4e6sVAbJtTQfa",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1573201374447,
"version": 1,
"sender": "3MvYrCuZcSEEpaonJMECNuAgua1N1pP4QLv",
"senderPublicKey": "8M3Q3Umd3j8Awzm99M79fM53H8ciKVWraTxGrf9qktxT",
"proofs": [
"39JfNKsw1ac2fvkotKfpKb8ZpSMycHWSeLFZig6xiCvduVVXFkQkKmTxobSQrEufPXy3nh3KGKHMyL2Fkrx71scJ"
],
"script": "base64:AAIDAAAAAAAAAAcIARIDCgEIAAAAAQEAAAAMdG9CeXRlVmVjdG9yAAAAAQAAAAJidgQAAAAHJG1hdGNoMAUAAAACYnYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAA2J2MAUAAAAHJG1hdGNoMAUAAAADYnYwCQAAAgAAAAECAAAAE0J5dGVWZWN0b3IgZXhwZWN0ZWQAAAABAAAAAWkBAAAAB3JlZ1VzZXIAAAABAAAACnVzZXJQdWJLZXkDCQEAAAACIT0AAAACBQAAAAp1c2VyUHViS2V5AgAAACxFOEJFakRIVEQ3M0dEZ1o4ZWJlOTNQOXI4YTUzNDZOQVhiS1FoVDh3TDhURQkAAAIAAAABAgAAABB1c2VyIG5vdCBhbGxvd2VkCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAp1c2VyUHViS2V5BQAAAAp1c2VyUHViS2V5BQAAAANuaWwAAAABAAAAAnR4AQAAAAh2ZXJpZmllcgAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdJbnZva2VTY3JpcHRUcmFuc2FjdGlvbgQAAAADaW52BQAAAAckbWF0Y2gwAwkAAAAAAAACCAUAAAADaW52AAAACGZ1bmN0aW9uAgAAAAdyZWdVc2VyCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAkBAAAADHRvQnl0ZVZlY3RvcgAAAAEJAAGRAAAAAggFAAAAA2ludgAAAARhcmdzAAAAAAAAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXnQ2X04",
"chainId": 84,
"height": 755724,
"spentComplexity": 0
}
View: original | compacted
Prev: J8h22vvR7pHwQwArZsYi8fgpfhx59JevCMQTUtkAGExz
Next: G3AW1APdsV2NbibVooSGn488uezWNcngrEvwn8a5YdFN
Diff:
Old | New | | Differences |
---|
25 | 25 | | then { |
---|
26 | 26 | | let i = c |
---|
27 | 27 | | if ((i.function == "regUser")) |
---|
28 | | - | then throw("toto") |
---|
| 28 | + | then sigVerify(g.bodyBytes, g.proofs[0], a(i.args[0])) |
---|
29 | 29 | | else sigVerify(g.bodyBytes, g.proofs[0], g.senderPublicKey) |
---|
30 | 30 | | } |
---|
31 | 31 | | else sigVerify(g.bodyBytes, g.proofs[0], g.senderPublicKey) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func a (b) = { |
---|
5 | 5 | | let c = b |
---|
6 | 6 | | if ($isInstanceOf(c, "ByteVector")) |
---|
7 | 7 | | then { |
---|
8 | 8 | | let d = c |
---|
9 | 9 | | d |
---|
10 | 10 | | } |
---|
11 | 11 | | else throw("ByteVector expected") |
---|
12 | 12 | | } |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | @Callable(e) |
---|
16 | 16 | | func regUser (f) = if ((f != "E8BEjDHTD73GDgZ8ebe93P9r8a5346NAXbKQhT8wL8TE")) |
---|
17 | 17 | | then throw("user not allowed") |
---|
18 | 18 | | else WriteSet([DataEntry("userPubKey", f)]) |
---|
19 | 19 | | |
---|
20 | 20 | | |
---|
21 | 21 | | @Verifier(g) |
---|
22 | 22 | | func h () = { |
---|
23 | 23 | | let c = g |
---|
24 | 24 | | if ($isInstanceOf(c, "InvokeScriptTransaction")) |
---|
25 | 25 | | then { |
---|
26 | 26 | | let i = c |
---|
27 | 27 | | if ((i.function == "regUser")) |
---|
28 | | - | then throw("toto") |
---|
| 28 | + | then sigVerify(g.bodyBytes, g.proofs[0], a(i.args[0])) |
---|
29 | 29 | | else sigVerify(g.bodyBytes, g.proofs[0], g.senderPublicKey) |
---|
30 | 30 | | } |
---|
31 | 31 | | else sigVerify(g.bodyBytes, g.proofs[0], g.senderPublicKey) |
---|
32 | 32 | | } |
---|
33 | 33 | | |
---|