tx · Ba5Q5YQKWYGxKr359parmbYphEGFLaBsoHbB5F7GmUCy 3N7cP8YCeBzv7e7Z1Gm8J7r371K5vZUrtk7: -0.05000000 Waves 2022.04.22 11:26 [2019470] smart account 3N7cP8YCeBzv7e7Z1Gm8J7r371K5vZUrtk7 > SELF 0.00000000 Waves
{ "type": 13, "id": "Ba5Q5YQKWYGxKr359parmbYphEGFLaBsoHbB5F7GmUCy", "fee": 5000000, "feeAssetId": null, "timestamp": 1650615986633, "version": 2, "chainId": 84, "sender": "3N7cP8YCeBzv7e7Z1Gm8J7r371K5vZUrtk7", "senderPublicKey": "2nPT1a7eSYaAtLcmXZXFzeztzzRFpmy1YRiqNo4Uh6Sg", "proofs": [ "TE4NxJ1rWJLriL7XaRhAL2fWueSBcoEKMqPaVgwDimcFstnLBbeQpMfopcbYyfzAaQbQ3M9USoHtAfWKu1awhnv" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAAAwAAAAANZ2xvYmFsQWRkcmVzcwkBAAAAB0FkZHJlc3MAAAABAQAAABoBVO90mqVIkubZXYy+8dsFZPkYHK0H0fmbKgEAAAAPcHJlcGFyZVBheW1lbnRzAAAAAQAAAAhwYXltZW50cwoBAAAADHBheW1lbnRzRm9sZAAAAAIAAAADYWNjAAAAB3BheW1lbnQEAAAACSR0MDMwMTM0NAUAAAADYWNjBAAAAA5wYXltZW50QW1vdW50cwgFAAAACSR0MDMwMTM0NAAAAAJfMQQAAAAPcGF5bWVudEFzc2V0SWRzCAUAAAAJJHQwMzAxMzQ0AAAAAl8yCQAFFAAAAAIJAARNAAAAAgUAAAAOcGF5bWVudEFtb3VudHMIBQAAAAdwYXltZW50AAAABmFtb3VudAkABE0AAAACBQAAAA9wYXltZW50QXNzZXRJZHMIBQAAAAdwYXltZW50AAAAB2Fzc2V0SWQKAAAAAAIkbAUAAAAIcGF5bWVudHMKAAAAAAIkcwkAAZAAAAABBQAAAAIkbAoAAAAABSRhY2MwCQAFFAAAAAIFAAAAA25pb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W1lbnRBc3NldElkcwgFAAAACiR0MDk1MTEwMTgAAAACXzIEAAAAAXIKAAAAAAFACQAD/AAAAAQFAAAADWdsb2JhbEFkZHJlc3MFAAAABWZuYW1lCQAETAAAAAIICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMJAARMAAAAAgUAAAAOcGF5bWVudEFtb3VudHMJAARMAAAAAgUAAAAPcGF5bWVudEFzc2V0SWRzBQAAAANuaWwFAAAAA25pbAMJAAABAAAAAgUAAAABQAIAAAAJTGlzdFtBbnldBQAAAAFACQAAAgAAAAECAAAAHkNvdWxkbid0IGNhc3QgQW55IHRvIExpc3RbQW55XQMJAAAAAAAAAgUAAAABcgUAAAABcgkBAAAAEXBhcnNlU3RhdGVDaGFuZ2VzAAAAAQUAAAABcgkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleZQ2J1I=", "height": 2019470, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4LBoDsipRWm1NqkbQz2eN8HWe16aDhYumyNRZoaGHTAw Next: E51beKMKJg6Wqhz7d2MpvHZmePW5epPNJJdhyujREhVS Diff:
Old | New | Differences | |
---|---|---|---|
55 | 55 | let paymentAmounts = $t09511018._1 | |
56 | 56 | let paymentAssetIds = $t09511018._2 | |
57 | 57 | let r = { | |
58 | - | let @ = invoke(globalAddress, fname, [i.caller, paymentAmounts, paymentAssetIds], nil) | |
58 | + | let @ = invoke(globalAddress, fname, [i.caller.bytes, paymentAmounts, paymentAssetIds], nil) | |
59 | 59 | if ($isInstanceOf(@, "List[Any]")) | |
60 | 60 | then @ | |
61 | 61 | else throw("Couldn't cast Any to List[Any]") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let globalAddress = Address(base58'3NBkCxZYHAsgWzHcictPG3CyPdEqPRDRyQM') | |
5 | 5 | ||
6 | 6 | func preparePayments (payments) = { | |
7 | 7 | func paymentsFold (acc,payment) = { | |
8 | 8 | let $t0301344 = acc | |
9 | 9 | let paymentAmounts = $t0301344._1 | |
10 | 10 | let paymentAssetIds = $t0301344._2 | |
11 | 11 | $Tuple2((paymentAmounts :+ payment.amount), (paymentAssetIds :+ payment.assetId)) | |
12 | 12 | } | |
13 | 13 | ||
14 | 14 | let $l = payments | |
15 | 15 | let $s = size($l) | |
16 | 16 | let $acc0 = $Tuple2(nil, nil) | |
17 | 17 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
18 | 18 | then $a | |
19 | 19 | else paymentsFold($a, $l[$i]) | |
20 | 20 | ||
21 | 21 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
22 | 22 | then $a | |
23 | 23 | else throw("List size exceeds 10") | |
24 | 24 | ||
25 | 25 | $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) | |
26 | 26 | } | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func parseStateChanges (changes) = { | |
30 | 30 | func collect (result,source) = match source { | |
31 | 31 | case e: Issue|Burn|Reissue|ScriptTransfer|BinaryEntry|BooleanEntry|StringEntry|IntegerEntry => | |
32 | 32 | (result :+ e) | |
33 | 33 | case _ => | |
34 | 34 | result | |
35 | 35 | } | |
36 | 36 | ||
37 | 37 | let $l = changes | |
38 | 38 | let $s = size($l) | |
39 | 39 | let $acc0 = nil | |
40 | 40 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
41 | 41 | then $a | |
42 | 42 | else collect($a, $l[$i]) | |
43 | 43 | ||
44 | 44 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
45 | 45 | then $a | |
46 | 46 | else throw("List size exceeds 10") | |
47 | 47 | ||
48 | 48 | $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) | |
49 | 49 | } | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | @Callable(i) | |
53 | 53 | func call (fname) = { | |
54 | 54 | let $t09511018 = preparePayments(i.payments) | |
55 | 55 | let paymentAmounts = $t09511018._1 | |
56 | 56 | let paymentAssetIds = $t09511018._2 | |
57 | 57 | let r = { | |
58 | - | let @ = invoke(globalAddress, fname, [i.caller, paymentAmounts, paymentAssetIds], nil) | |
58 | + | let @ = invoke(globalAddress, fname, [i.caller.bytes, paymentAmounts, paymentAssetIds], nil) | |
59 | 59 | if ($isInstanceOf(@, "List[Any]")) | |
60 | 60 | then @ | |
61 | 61 | else throw("Couldn't cast Any to List[Any]") | |
62 | 62 | } | |
63 | 63 | if ((r == r)) | |
64 | 64 | then parseStateChanges(r) | |
65 | 65 | else throw("Strict value is not equal to itself.") | |
66 | 66 | } | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | @Verifier(tx) | |
70 | 70 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
71 | 71 |
github/deemru/w8io/169f3d6 24.65 ms ◑