tx · 2pjbj7gcdN28j3E7TGLGZ1rju7YtdcMfbnRB4B73dB12 3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn: -0.00200000 Waves 2023.03.20 19:47 [2498588] smart account 3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn > SELF 0.00000000 Waves
{ "type": 13, "id": "2pjbj7gcdN28j3E7TGLGZ1rju7YtdcMfbnRB4B73dB12", "fee": 200000, "feeAssetId": null, "timestamp": 1679330907932, "version": 2, "chainId": 84, "sender": "3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn", "senderPublicKey": "CZeucjRLCKrkiP9zuj9KbLe23Wv9DywFzHBqNDnte51B", "proofs": [ "bqQwUPAUujpS4z3q1ZEiocV28ZsVWqcpHswnzZ2G8FoYw8w2fXztjPi9XMnWkQCj1guSrdRyoQzjPhaL1bY5vbQ" ], "script": "base64:BgIbCAISBAoCCAgSBAoCCAESBgoECAgICBIDCgEICAAOY29sbGVjdGlvbk5hbWUJARFAZXh0ck5hdGl2ZSgxMDU4KQECDmNvbGxlY3Rpb25OYW1lAAZzeW1ib2wJARFAZXh0ck5hdGl2ZSgxMDU4KQECBnN5bWJvbAALZGVzY3JpcHRpb24JARFAZXh0ck5hdGl2ZSgxMDU4KQECC2Rlc2NyaXB0aW9uAAt0b3RhbEFtb3VudAkBEUBleHRyTmF0aXZlKDEwNTUpAQILdG90YWxBbW91bnQAB2Jhc2VVUkkJARFAZXh0ck5hdGl2ZSgxMDU4KQECB2Jhc2VVUkkACGRBcHBKc29uCQEHQWRkcmVzcwEJANkEAQIjM01yR2FaVlJoa25FR2ZISjE5dHRVUE5uRFJvRnFjSGhWTjcBDG9ubHlJbnRlcm5hbAEGY2FsbGVyAwkAAAIFBmNhbGxlcgUEdGhpcwUEdW5pdAkAAgECEk9ubHkgaW50ZXJuYWwgY2FsbAENdHJhbnNmZXJPck5vdAICdG8HYXNzZXRJZAMJAAACBQJ0bwUEdGhpcwkBC1N0cmluZ0VudHJ5AgIEc210aAIE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ACQACAQkArAICCQADAQUBQAIbIGNvdWxkbid0IGJlIGNhc3QgdG8gU3RyaW5nBAVhc3NldAkAwwgHBQRuYW1lBQRqc29uAAEAAAcFBHVuaXQFBmhlaWdodAQHYXNzZXRJZAkAuAgBBQVhc3NldAQJdG9BZGRyZXNzCQEHQWRkcmVzcwEJANkEAQUCdG8ECHRyYW5zZmVyCQENdHJhbnNmZXJPck5vdAIFCXRvQWRkcmVzcwUHYXNzZXRJZAMJAAACBQh0cmFuc2ZlcgUIdHJhbnNmZXIFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAIyhPI", "height": 2498588, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3vJPisRCYpPxAEaAzawJ1X7uo5m363XxsKwDFmLXXd27 Next: 26WaF8hpDe22Bmq9WaiBZcHf1AGwCy85d9MrKxSRe4sC Diff:
Old | New | Differences | |
---|---|---|---|
56 | 56 | let z = Issue(v, x, 1, 0, false, unit, height) | |
57 | 57 | let k = calculateAssetId(z) | |
58 | 58 | let A = Address(fromBase58String(j)) | |
59 | - | nil | |
59 | + | let B = i(A, k) | |
60 | + | if ((B == B)) | |
61 | + | then nil | |
62 | + | else throw("Strict value is not equal to itself.") | |
60 | 63 | } | |
61 | 64 | ||
62 | 65 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = getStringValue("collectionName") | |
5 | 5 | ||
6 | 6 | let b = getStringValue("symbol") | |
7 | 7 | ||
8 | 8 | let c = getStringValue("description") | |
9 | 9 | ||
10 | 10 | let d = getIntegerValue("totalAmount") | |
11 | 11 | ||
12 | 12 | let e = getStringValue("baseURI") | |
13 | 13 | ||
14 | 14 | let f = Address(fromBase58String("3MrGaZVRhknEGfHJ19ttUPNnDRoFqcHhVN7")) | |
15 | 15 | ||
16 | 16 | func g (h) = if ((h == this)) | |
17 | 17 | then unit | |
18 | 18 | else throw("Only internal call") | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | func i (j,k) = if ((j == this)) | |
22 | 22 | then StringEntry("smth", "smth") | |
23 | 23 | else ScriptTransfer(j, 1, k) | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | @Callable(l) | |
27 | 27 | func setString (m,n) = [StringEntry(m, n)] | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | ||
31 | 31 | @Callable(l) | |
32 | 32 | func setInt (m,n) = [IntegerEntry(m, n)] | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | ||
36 | 36 | @Callable(l) | |
37 | 37 | func init (o,p,q,r) = valueOrElse(g(l.caller), [StringEntry("collectionName", o), StringEntry("symbol", p), StringEntry("description", q), IntegerEntry("totalAmount", 0), StringEntry("baseURI", r)]) | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | ||
41 | 41 | @Callable(l) | |
42 | 42 | func mint (j) = { | |
43 | 43 | let s = (d + 1) | |
44 | 44 | let t = toString(s) | |
45 | 45 | let u = ((b + "#") + t) | |
46 | 46 | let v = if ((16 >= size(u))) | |
47 | 47 | then u | |
48 | 48 | else t | |
49 | 49 | let w = (e + t) | |
50 | 50 | let x = { | |
51 | 51 | let y = invoke(f, "makeJSON", [["tokenURI"], [w]], nil) | |
52 | 52 | if ($isInstanceOf(y, "String")) | |
53 | 53 | then y | |
54 | 54 | else throw(($getType(y) + " couldn't be cast to String")) | |
55 | 55 | } | |
56 | 56 | let z = Issue(v, x, 1, 0, false, unit, height) | |
57 | 57 | let k = calculateAssetId(z) | |
58 | 58 | let A = Address(fromBase58String(j)) | |
59 | - | nil | |
59 | + | let B = i(A, k) | |
60 | + | if ((B == B)) | |
61 | + | then nil | |
62 | + | else throw("Strict value is not equal to itself.") | |
60 | 63 | } | |
61 | 64 | ||
62 | 65 |
github/deemru/w8io/169f3d6 27.78 ms ◑