tx · 9kXG7VdFaJd6mPzcfpSmvRGGECgaAuepXzvK5wXqLWLw

3N49shcErzZepEy7HDR1fjAce8humpL7QiH:  -0.01000000 Waves

2022.12.18 13:20 [2365600] smart account 3N49shcErzZepEy7HDR1fjAce8humpL7QiH > SELF 0.00000000 Waves

{ "type": 13, "id": "9kXG7VdFaJd6mPzcfpSmvRGGECgaAuepXzvK5wXqLWLw", "fee": 1000000, "feeAssetId": null, "timestamp": 1671358883436, "version": 2, "chainId": 84, "sender": "3N49shcErzZepEy7HDR1fjAce8humpL7QiH", "senderPublicKey": "9frGdXQHcSntKXRWwZ4YJZWnnKREWwYH4cEzMVQwcwYj", "proofs": [ "256wxQhJGob9ZvNfrgNNTL63YKsawa93MN7FpvvBTxTRLxhjjBZccw2dsPa6ZzyJLLk7KNCrCLHsei4kCZvX5UCX" ], "script": "base64:BgIHCAISAwoBAQIAB2ZlZVRhbmsJAQdBZGRyZXNzAQEaAVT0a9RUk0VehJePvE6ZZrUjKYothFBWfP8AA2M1YQkAzAgCCQDMCAIJAQdBZGRyZXNzAQEaAVRLd+b7vlOc2D4ee4t82/CQ9p9WvVIXlJYJAMwIAgkBB0FkZHJlc3MBARoBVEt35vu+U5zYPh57i3zb8JD2n1a9UheUlgkAzAgCCQEHQWRkcmVzcwEBGgFUS3fm+75TnNg+HnuLfNvwkPafVr1SF5SWCQDMCAIJAQdBZGRyZXNzAQEaAVRLd+b7vlOc2D4ee4t82/CQ9p9WvVIXlJYJAMwIAgkBB0FkZHJlc3MBARoBVEt35vu+U5zYPh57i3zb8JD2n1a9UheUlgUDbmlsBQNuaWwBAWkBAmM1AQJjaQoBAXcCBWFjY3VtB2FkZHJlc3MEA3JlcwkA/AcEBQdhZGRyZXNzAgJ2ZgkAzAgCBwkAzAgCBgUDbmlsBQNuaWwDCQAAAgUDcmVzBQNyZXMFA3JlcwkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgMJAQIhPQIIBQFpBm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AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleRuJEjo=", "height": 2365600, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GuSgiudQe9m3Luq9qe2ty65eDVWUzVjCmWgi5xfXgzk9 Next: qtbp8vGH9uXgQ1NFuADk2MKRf6Kx7VUEjmV8b7k6yoS Diff:
OldNewDifferences
1010 func w (accum,address) = {
1111 let res = invoke(address, "vf", [false, true], nil)
1212 if ((res == res))
13- then match res {
14- case res: Int =>
15-[IntegerEntry("res", (valueOrElse(getInteger("res"), 0) + res))]
16- case _ =>
17- throw("Res not Int")
18- }
13+ then res
1914 else throw("Strict value is not equal to itself.")
2015 }
2116
2318 then throw("only admin allowed")
2419 else {
2520 let addr = c5a[ci]
26- let fold = {
21+ let resFold = {
2722 let $l = addr
2823 let $s = size($l)
29- let $acc0 = ""
24+ let $acc0 = 0
3025 func $f0_1 ($a,$i) = if (($i >= $s))
3126 then $a
3227 else w($a, $l[$i])
3732
3833 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
3934 }
40- if ((fold == fold))
35+ if ((resFold == resFold))
4136 then {
4237 let gFee = invoke(feeTank, "smf", [i.fee], nil)
4338 if ((gFee == gFee))
44- then nil
39+ then match resFold {
40+ case resFold: Int =>
41+[IntegerEntry("resFold", (valueOrElse(getInteger("resFold"), 0) + resFold))]
42+ case _ =>
43+ throw("Res not Int")
44+ }
4545 else throw("Strict value is not equal to itself.")
4646 }
4747 else throw("Strict value is not equal to itself.")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let feeTank = Address(base58'3NCCTpr3CvajyxfmNGFv2nzx6iajXDk2zPg')
55
66 let c5a = [[Address(base58'3Mvo86GH3NdYW1XXd6h6YpGFef5Y5WNVYgM'), Address(base58'3Mvo86GH3NdYW1XXd6h6YpGFef5Y5WNVYgM'), Address(base58'3Mvo86GH3NdYW1XXd6h6YpGFef5Y5WNVYgM'), Address(base58'3Mvo86GH3NdYW1XXd6h6YpGFef5Y5WNVYgM'), Address(base58'3Mvo86GH3NdYW1XXd6h6YpGFef5Y5WNVYgM')]]
77
88 @Callable(i)
99 func c5 (ci) = {
1010 func w (accum,address) = {
1111 let res = invoke(address, "vf", [false, true], nil)
1212 if ((res == res))
13- then match res {
14- case res: Int =>
15-[IntegerEntry("res", (valueOrElse(getInteger("res"), 0) + res))]
16- case _ =>
17- throw("Res not Int")
18- }
13+ then res
1914 else throw("Strict value is not equal to itself.")
2015 }
2116
2217 if ((i.caller != this))
2318 then throw("only admin allowed")
2419 else {
2520 let addr = c5a[ci]
26- let fold = {
21+ let resFold = {
2722 let $l = addr
2823 let $s = size($l)
29- let $acc0 = ""
24+ let $acc0 = 0
3025 func $f0_1 ($a,$i) = if (($i >= $s))
3126 then $a
3227 else w($a, $l[$i])
3328
3429 func $f0_2 ($a,$i) = if (($i >= $s))
3530 then $a
3631 else throw("List size exceeds 5")
3732
3833 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
3934 }
40- if ((fold == fold))
35+ if ((resFold == resFold))
4136 then {
4237 let gFee = invoke(feeTank, "smf", [i.fee], nil)
4338 if ((gFee == gFee))
44- then nil
39+ then match resFold {
40+ case resFold: Int =>
41+[IntegerEntry("resFold", (valueOrElse(getInteger("resFold"), 0) + resFold))]
42+ case _ =>
43+ throw("Res not Int")
44+ }
4545 else throw("Strict value is not equal to itself.")
4646 }
4747 else throw("Strict value is not equal to itself.")
4848 }
4949 }
5050
5151
5252 @Verifier(tx)
5353 func verify () = match tx {
5454 case inv: InvokeScriptTransaction =>
5555 if ((addressFromRecipient(inv.dApp) == this))
5656 then true
5757 else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
5858 case _ =>
5959 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
6060 }
6161

github/deemru/w8io/026f985 
46.25 ms