tx · 9GQCDoXgThMGC7DbsnRw88ZDQr4Evgk6LgfueY1Dvva

3N5BTH4bjnXn7AAKoj4sswxytsPGmdXUuTx:  -0.01000000 Waves

2023.03.24 12:57 [2503935] smart account 3N5BTH4bjnXn7AAKoj4sswxytsPGmdXUuTx > SELF 0.00000000 Waves

{ "type": 13, "id": "9GQCDoXgThMGC7DbsnRw88ZDQr4Evgk6LgfueY1Dvva", "fee": 1000000, "feeAssetId": null, "timestamp": 1679651987827, "version": 2, "chainId": 84, "sender": "3N5BTH4bjnXn7AAKoj4sswxytsPGmdXUuTx", "senderPublicKey": "DyeDJ3fgwVVux2WRkxpLU9BbVjTM96AyV58b7bRFzCBx", "proofs": [ "3R9z7jdjLAxes2wRmjTdJdN6rJHZGeKT5ZsiiXMuthw8To5x1rZ2mqrf5B3rrVVNwjp2Twpu3Dwm8PB8gkWMRf6q" ], "script": "base64:BgIJCAISBQoDGBgRAAEBaQEGYnV5TmZ0AwZzZWxsZXIEbmZ0cwVwcmljZQQFYnV5ZXIIBQFpBmNhbGxlcgQDbmZ0CQCQAwEFBG5mdHMEDGJ1eWVyQmFsYW5jZQkA8AcCBQVidXllcgEghWOVo/OIjrDeDBeOCE6/mj+SuybbOuh2jhbcFCIqSH4EBmFtb3VudAkBBXZhbHVlAQgJAJEDAggFAWkIcGF5bWVudHMAAAZhbW91bnQEBmxlbmd0aAkAsQIBAgVuZnRJZAoBA3N1bQIFYWNjdW0EbmV4dAkAZAIFBWFjY3VtBQRuZXh0BANhcnIFBXByaWNlBAl0b3RhbENvc3QKAAIkbAUDYXJyCgACJHMJAJADAQUCJGwKAAUkYWNjMAAACgEFJGYwXzECAiRhAiRpAwkAZwIFAiRpBQIkcwUCJGEJAQNzdW0CBQIkYQkAkQMCBQIkbAUCJGkKAQUkZjBfMgICJGECJGkDCQBnAgUCJGkFAiRzBQIkYQkAAgECE0xpc3Qgc2l6ZSBleGNlZWRzIDUJAQUkZjBfMgIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIFBSRhY2MwAAAAAQACAAMABAAFCgEDbWFwAgVhY2N1bQRuZXh0CQDNCAIFBWFjY3VtBQRuZXh0BANicnIFBG5mdHMEBXRvdGFsCgACJGwFA2JycgoAAiRzCQCQAwEFAiRsCgAFJGFjYzAFA25pbAoBBSRmMV8xAgIkYQIkaQMJAGcCBQIkaQUCJHMFAiRhCQEDbWFwAgUCJGEJAJEDAgUCJGwFAiRpCgEFJGYxXzICAiRhAiRpAwkAZwIFAiRpBQIkcwUCJGEJAAIBAhNMaXN0IHNpemUgZXhjZWVkcyA1CQEFJGYxXzICCQEFJGYxXzECCQEFJGYxXzECCQEFJGYxXzECCQEFJGYxXzECCQEFJGYxXzECBQUkYWNjMAAAAAEAAgADAAQABQQGb25lUHJvCQDZBAEJAJEDAgUFdG90YWwAAAQGdHdvUHJvCQDZBAEJAJEDAgUFdG90YWwAAQkAzAgCCQELU3RyaW5nRW50cnkCCQClCAEIBQFpBmNhbGxlcgkApAMBBQZhbW91bnQJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwUFYnV5ZXIAAQUGb25lUHJvCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMFBWJ1eWVyAAEFBnR3b1BybwUDbmlsAA1rGRg=", "height": 2503935, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2DwtqPaLHE3bdr7sfArN4r2kt4fSLuGafQgpMuF4y1RD Next: FsX2Xb3eLrgVj4zcXk9RhdiugM7QUs737F5LhgsSvcc4 Diff:
OldNewDifferences
4646 }
4747 let A = fromBase58String(x[0])
4848 let B = fromBase58String(x[1])
49- if ((n > h))
50- then throw("your paying ammount is wrong ")
51- else if (if ((size(c) != size(b)))
52- then true
53- else (size(b) != size(d)))
54- then throw("Invalid input: Number of NFTs, seller addresses, and costs must be the same.")
55- else if ((h > g))
56- then throw("Buyer does not have enough funds to complete the purchase.")
57- else [StringEntry(toString(a.caller), toString(h)), ScriptTransfer(e, 1, A), ScriptTransfer(e, 1, B)]
49+[StringEntry(toString(a.caller), toString(h)), ScriptTransfer(e, 1, A), ScriptTransfer(e, 1, B)]
5850 }
5951
6052
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func buyNft (b,c,d) = {
88 let e = a.caller
99 let f = size(c)
1010 let g = assetBalance(e, base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq')
1111 let h = value(a.payments[0].amount)
1212 let i = size("nftId")
1313 func j (k,l) = (k + l)
1414
1515 let m = d
1616 let n = {
1717 let o = m
1818 let p = size(o)
1919 let q = 0
2020 func r (s,t) = if ((t >= p))
2121 then s
2222 else j(s, o[t])
2323
2424 func u (s,t) = if ((t >= p))
2525 then s
2626 else throw("List size exceeds 5")
2727
2828 u(r(r(r(r(r(q, 0), 1), 2), 3), 4), 5)
2929 }
3030 func v (k,l) = (k :+ l)
3131
3232 let w = c
3333 let x = {
3434 let o = w
3535 let p = size(o)
3636 let q = nil
3737 func y (s,t) = if ((t >= p))
3838 then s
3939 else v(s, o[t])
4040
4141 func z (s,t) = if ((t >= p))
4242 then s
4343 else throw("List size exceeds 5")
4444
4545 z(y(y(y(y(y(q, 0), 1), 2), 3), 4), 5)
4646 }
4747 let A = fromBase58String(x[0])
4848 let B = fromBase58String(x[1])
49- if ((n > h))
50- then throw("your paying ammount is wrong ")
51- else if (if ((size(c) != size(b)))
52- then true
53- else (size(b) != size(d)))
54- then throw("Invalid input: Number of NFTs, seller addresses, and costs must be the same.")
55- else if ((h > g))
56- then throw("Buyer does not have enough funds to complete the purchase.")
57- else [StringEntry(toString(a.caller), toString(h)), ScriptTransfer(e, 1, A), ScriptTransfer(e, 1, B)]
49+[StringEntry(toString(a.caller), toString(h)), ScriptTransfer(e, 1, A), ScriptTransfer(e, 1, B)]
5850 }
5951
6052

github/deemru/w8io/169f3d6 
29.24 ms