tx · CqTNAzrYTqVVZfRaGpb624TCuEjB3ZwsBdMsj6o8i3CN
3MuBakQdFAobmsHH371bKVYNed6yA9Y2Wfy: -0.01400000 Waves
2021.05.25 12:49 [1541026] smart account 3MuBakQdFAobmsHH371bKVYNed6yA9Y2Wfy > SELF 0.00000000 Waves
{
"type": 13,
"id": "CqTNAzrYTqVVZfRaGpb624TCuEjB3ZwsBdMsj6o8i3CN",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1621936161530,
"version": 2,
"chainId": 84,
"sender": "3MuBakQdFAobmsHH371bKVYNed6yA9Y2Wfy",
"senderPublicKey": "9BAE85H9Tsey8NGdpT5HxdVYHBCmY1prGiG1TSQJxnZe",
"proofs": [
"5oF6XuUUeq2kxn5uYTmq7PAj5aFMur1RWK9ZAdtY8FyipfABV7QCRyuoUaQnH4rNHvgm2d99bXtqePzTK65NMdDL"
],
"script": "base64:AAIEAAAAAAAAAAcIAhIDCgEIAAAABQEAAAAOZ2V0TnVtYmVyQnlLZXkAAAABAAAAA2tleQQAAAAGbnVtYmVyBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAABQAAAAZudW1iZXIAAAAABE5PTkUCAAAABG5vbmUBAAAADmdldFN0cmluZ0J5S2V5AAAAAQAAAANrZXkEAAAABnN0cmluZwQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQUAAAAETk9ORQUAAAAGc3RyaW5nAQAAAA9nZXRLZXlVc2VyRW1haWwAAAABAAAABHVzZXIJAAEsAAAAAgkAASwAAAACAgAAAAV1c2VyXwUAAAAEdXNlcgIAAAAGX2VtYWlsAQAAABFnZXRWYWx1ZVVzZXJFbWFpbAAAAAEAAAAEdXNlcgkBAAAADmdldFN0cmluZ0J5S2V5AAAAAQkBAAAAD2dldEtleVVzZXJFbWFpbAAAAAEFAAAABHVzZXIAAAABAAAAAWkBAAAABnNpZ25VcAAAAAEAAAAFZW1haWwEAAAAEmN1cnJlbnRVc2VyQWRkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAABBjdXJyZW50VXNlckVtYWlsCQEAAAAPZ2V0S2V5VXNlckVtYWlsAAAAAQUAAAASY3VycmVudFVzZXJBZGRyZXNzAwkBAAAAAiE9AAAAAgUAAAAQY3VycmVudFVzZXJFbWFpbAUAAAAETk9ORQkAAAIAAAABAgAAABN1c2VyIGFscmVhZHkgZXhpc3RzCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAQAAAA9nZXRLZXlVc2VyRW1haWwAAAABBQAAABJjdXJyZW50VXNlckFkZHJlc3MFAAAABWVtYWlsBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleXmHCW0=",
"height": 1541026,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 73Yp1EKZ5Xt5AdMGc3zGjus6NtWDCiYozq7XTwHaLExM
Next: DLBmJXK24o4Cp8tKu8vFgLT7g6mJH2kGtmZJLZcVkZhd
Diff:
Old | New | | Differences |
---|
40 | 40 | | @Callable(l) |
---|
41 | 41 | | func signUp (m) = { |
---|
42 | 42 | | let n = toBase58String(l.caller.bytes) |
---|
43 | | - | [StringEntry(i(n), m)] |
---|
| 43 | + | let o = i(n) |
---|
| 44 | + | if ((o != f)) |
---|
| 45 | + | then throw("user already exists") |
---|
| 46 | + | else [StringEntry(i(n), m)] |
---|
44 | 47 | | } |
---|
45 | 48 | | |
---|
46 | 49 | | |
---|
47 | | - | @Verifier(o) |
---|
48 | | - | func p () = sigVerify(o.bodyBytes, o.proofs[0], o.senderPublicKey) |
---|
| 50 | + | @Verifier(p) |
---|
| 51 | + | func q () = sigVerify(p.bodyBytes, p.proofs[0], p.senderPublicKey) |
---|
49 | 52 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func a (b) = { |
---|
5 | 5 | | let c = { |
---|
6 | 6 | | let d = getInteger(this, b) |
---|
7 | 7 | | if ($isInstanceOf(d, "Int")) |
---|
8 | 8 | | then { |
---|
9 | 9 | | let e = d |
---|
10 | 10 | | e |
---|
11 | 11 | | } |
---|
12 | 12 | | else 0 |
---|
13 | 13 | | } |
---|
14 | 14 | | c |
---|
15 | 15 | | } |
---|
16 | 16 | | |
---|
17 | 17 | | |
---|
18 | 18 | | let f = "none" |
---|
19 | 19 | | |
---|
20 | 20 | | func g (b) = { |
---|
21 | 21 | | let h = { |
---|
22 | 22 | | let d = getString(this, b) |
---|
23 | 23 | | if ($isInstanceOf(d, "String")) |
---|
24 | 24 | | then { |
---|
25 | 25 | | let e = d |
---|
26 | 26 | | e |
---|
27 | 27 | | } |
---|
28 | 28 | | else f |
---|
29 | 29 | | } |
---|
30 | 30 | | h |
---|
31 | 31 | | } |
---|
32 | 32 | | |
---|
33 | 33 | | |
---|
34 | 34 | | func i (j) = (("user_" + j) + "_email") |
---|
35 | 35 | | |
---|
36 | 36 | | |
---|
37 | 37 | | func k (j) = g(i(j)) |
---|
38 | 38 | | |
---|
39 | 39 | | |
---|
40 | 40 | | @Callable(l) |
---|
41 | 41 | | func signUp (m) = { |
---|
42 | 42 | | let n = toBase58String(l.caller.bytes) |
---|
43 | | - | [StringEntry(i(n), m)] |
---|
| 43 | + | let o = i(n) |
---|
| 44 | + | if ((o != f)) |
---|
| 45 | + | then throw("user already exists") |
---|
| 46 | + | else [StringEntry(i(n), m)] |
---|
44 | 47 | | } |
---|
45 | 48 | | |
---|
46 | 49 | | |
---|
47 | | - | @Verifier(o) |
---|
48 | | - | func p () = sigVerify(o.bodyBytes, o.proofs[0], o.senderPublicKey) |
---|
| 50 | + | @Verifier(p) |
---|
| 51 | + | func q () = sigVerify(p.bodyBytes, p.proofs[0], p.senderPublicKey) |
---|
49 | 52 | | |
---|