tx · 99mEYjqncPmWsyopY5UuStUTUV8QbBAYsZNfLKqr8Y6N

3N7hFU6dFSFKGGwDyF9WJ1jVsrB9w8RHT37:  -0.00500000 Waves

2022.07.01 22:43 [2121021] smart account 3N7hFU6dFSFKGGwDyF9WJ1jVsrB9w8RHT37 > SELF 0.00000000 Waves

{ "type": 13, "id": "99mEYjqncPmWsyopY5UuStUTUV8QbBAYsZNfLKqr8Y6N", "fee": 500000, "feeAssetId": null, "timestamp": 1656704615986, "version": 2, "chainId": 84, "sender": "3N7hFU6dFSFKGGwDyF9WJ1jVsrB9w8RHT37", "senderPublicKey": "J6bcbr8r9usSLYw72NzzrKVCvKDDLe1uDx8bnWp3uFAV", "proofs": [ "42wkVLGo7Lg75hjCMgTidSCRNdoCTC6sP2fXEvsi4e7QPEPBKXG9bkUNiepQM46N965mPbbhKQBrE8jCnZkwgT9q" ], "script": "base64:AAIFAAAAAAAAAAIIAgAAAAIBAAAAC25lc3RlZENhbGxzAAAAAQAAAAF4AgAAAAVoZWxsbwEAAAADZm9vAAAAAQAAAARhcmdzBAAAAAF0CQAFFQAAAAMCAAAAIzNNeGQ1bzdQd0g3NlprTjh6RzR4d0RMdWJFbmJrYWloS3ppAgAAACZ1bnN0YWtlQ29taXNzaW9uQW1vdW50QnlIZWlnaHRSRUFET05MWQUAAAAEYXJncwkBAAAAC25lc3RlZENhbGxzAAAAAQkABEwAAAACBQAAAAF0BQAAAANuaWwAAAAAAAAAAM5OdJg=", "height": 2121021, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CF7jgPNyPNgSBPUf32QBShtAhuMqSsAqFNAGoCNmPzy2 Next: 4ZUTbhhX9W5kJ4SYUQNUAmX3Aan5fcdQPy2KA9Fciz3h Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-func asString (val) = match val {
5- case valStr: String =>
6- valStr
7- case _ =>
8- throw("fail to cast into String")
9-}
4+func nestedCalls (x) = "hello"
105
116
12-func asAnyList (val) = match val {
13- case valAnyLyst: List[Any] =>
14- valAnyLyst
15- case _ =>
16- throw("fail to cast into List[Any]")
17-}
18-
19-
20-func nestedCalls (x) = {
21- func call (a,e) = {
22- let dappAddress = asString(e[0])
23- let funcName = asString(e[1])
24- let args = asAnyList(e[2])
25- ((a + "
26-") + asString(invoke(Address(fromBase58String(dappAddress)), funcName, args, nil)))
27- }
28-
29- let $l = x
30- let $s = size($l)
31- let $acc0 = ""
32- func $f0_1 ($a,$i) = if (($i >= $s))
33- then $a
34- else call($a, $l[$i])
35-
36- func $f0_2 ($a,$i) = if (($i >= $s))
37- then $a
38- else throw("List size exceeds 10")
39-
40- $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
7+func foo (args) = {
8+ let t = $Tuple3("3Mxd5o7PwH76ZkN8zG4xwDLubEnbkaihKzi", "unstakeComissionAmountByHeightREADONLY", args)
9+ nestedCalls([t])
4110 }
4211
4312
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-func asString (val) = match val {
5- case valStr: String =>
6- valStr
7- case _ =>
8- throw("fail to cast into String")
9-}
4+func nestedCalls (x) = "hello"
105
116
12-func asAnyList (val) = match val {
13- case valAnyLyst: List[Any] =>
14- valAnyLyst
15- case _ =>
16- throw("fail to cast into List[Any]")
17-}
18-
19-
20-func nestedCalls (x) = {
21- func call (a,e) = {
22- let dappAddress = asString(e[0])
23- let funcName = asString(e[1])
24- let args = asAnyList(e[2])
25- ((a + "
26-") + asString(invoke(Address(fromBase58String(dappAddress)), funcName, args, nil)))
27- }
28-
29- let $l = x
30- let $s = size($l)
31- let $acc0 = ""
32- func $f0_1 ($a,$i) = if (($i >= $s))
33- then $a
34- else call($a, $l[$i])
35-
36- func $f0_2 ($a,$i) = if (($i >= $s))
37- then $a
38- else throw("List size exceeds 10")
39-
40- $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
7+func foo (args) = {
8+ let t = $Tuple3("3Mxd5o7PwH76ZkN8zG4xwDLubEnbkaihKzi", "unstakeComissionAmountByHeightREADONLY", args)
9+ nestedCalls([t])
4110 }
4211
4312
4413

github/deemru/w8io/169f3d6 
28.03 ms