tx · 9xq2xjAA334ar5YWN7fjLfXWW1UNorZnK8n8XM6eRe8s

3N5BTH4bjnXn7AAKoj4sswxytsPGmdXUuTx:  -0.01000000 Waves

2023.03.24 13:11 [2503951] smart account 3N5BTH4bjnXn7AAKoj4sswxytsPGmdXUuTx > SELF 0.00000000 Waves

{ "type": 13, "id": "9xq2xjAA334ar5YWN7fjLfXWW1UNorZnK8n8XM6eRe8s", "fee": 1000000, "feeAssetId": null, "timestamp": 1679652856420, "version": 2, "chainId": 84, "sender": "3N5BTH4bjnXn7AAKoj4sswxytsPGmdXUuTx", "senderPublicKey": "DyeDJ3fgwVVux2WRkxpLU9BbVjTM96AyV58b7bRFzCBx", "proofs": [ "xaAGrY8ApVH39ow6YsWWYdAzthTi1mpa7HkRXAVPT5VtUtWLFJTZCX5DK1BnmLcZjCWrMYMMKHtYbA6pGMZh6LD" ], "script": "base64:BgIHCAISAwoBGAABAWkBBmJ1eU5mdAEEbmZ0cwQFYnV5ZXIIBQFpBmNhbGxlcgQDbmZ0CQCQAwEFBG5mdHMEDGJ1eWVyQmFsYW5jZQkA8AcCBQVidXllcgEghWOVo/OIjrDeDBeOCE6/mj+SuybbOuh2jhbcFCIqSH4EBmFtb3VudAkBBXZhbHVlAQgJAJEDAggFAWkIcGF5bWVudHMAAAZhbW91bnQEBmxlbmd0aAkAsQIBAgVuZnRJZAQGb25lUHJvCQDZBAEJAJEDAgUEbmZ0cwAABAZ0d29Qcm8JANkEAQkAkQMCBQRuZnRzAAEJAMwIAgkBC1N0cmluZ0VudHJ5AgkApQgBCAUBaQZjYWxsZXIJAKQDAQUGYW1vdW50CQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMFBWJ1eWVyAAEFBm9uZVBybwkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDBQVidXllcgABBQZ0d29Qcm8FA25pbAAgDAir", "height": 2503951, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6QSHtqxxB8NjQn8BJeNa35D7g9HTNMUbcK2TxdPkcWDM Next: AtMDE5CQiq6cuhzQt31J6LrsY97hwXkQXZD8ysYSUxUh Diff:
OldNewDifferences
44
55
66 @Callable(a)
7-func buyNft (b,c,d) = {
8- let e = a.caller
9- let f = size(c)
10- let g = assetBalance(e, base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq')
11- let h = value(a.payments[0].amount)
12- let i = size("nftId")
13- func j (k,l) = (k + l)
14-
15- let m = d
16- let n = {
17- let o = m
18- let p = size(o)
19- let q = 0
20- func r (s,t) = if ((t >= p))
21- then s
22- else j(s, o[t])
23-
24- func u (s,t) = if ((t >= p))
25- then s
26- else throw("List size exceeds 5")
27-
28- u(r(r(r(r(r(q, 0), 1), 2), 3), 4), 5)
29- }
30- let v = fromBase58String(c[0])
31- let w = fromBase58String(c[1])
32-[StringEntry(toString(a.caller), toString(h)), ScriptTransfer(e, 1, v), ScriptTransfer(e, 1, w)]
7+func buyNft (b) = {
8+ let c = a.caller
9+ let d = size(b)
10+ let e = assetBalance(c, base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq')
11+ let f = value(a.payments[0].amount)
12+ let g = size("nftId")
13+ let h = fromBase58String(b[0])
14+ let i = fromBase58String(b[1])
15+[StringEntry(toString(a.caller), toString(f)), ScriptTransfer(c, 1, h), ScriptTransfer(c, 1, i)]
3316 }
3417
3518
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
7-func buyNft (b,c,d) = {
8- let e = a.caller
9- let f = size(c)
10- let g = assetBalance(e, base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq')
11- let h = value(a.payments[0].amount)
12- let i = size("nftId")
13- func j (k,l) = (k + l)
14-
15- let m = d
16- let n = {
17- let o = m
18- let p = size(o)
19- let q = 0
20- func r (s,t) = if ((t >= p))
21- then s
22- else j(s, o[t])
23-
24- func u (s,t) = if ((t >= p))
25- then s
26- else throw("List size exceeds 5")
27-
28- u(r(r(r(r(r(q, 0), 1), 2), 3), 4), 5)
29- }
30- let v = fromBase58String(c[0])
31- let w = fromBase58String(c[1])
32-[StringEntry(toString(a.caller), toString(h)), ScriptTransfer(e, 1, v), ScriptTransfer(e, 1, w)]
7+func buyNft (b) = {
8+ let c = a.caller
9+ let d = size(b)
10+ let e = assetBalance(c, base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq')
11+ let f = value(a.payments[0].amount)
12+ let g = size("nftId")
13+ let h = fromBase58String(b[0])
14+ let i = fromBase58String(b[1])
15+[StringEntry(toString(a.caller), toString(f)), ScriptTransfer(c, 1, h), ScriptTransfer(c, 1, i)]
3316 }
3417
3518

github/deemru/w8io/169f3d6 
23.75 ms