tx · Dv6g4s8nYtZzRNj42Yh3Mx11sqXC5GJFAmFSTscmfBHg 3N3irEKCdj77h97aEbfj3fa3uMXCNCXVhKt: -0.05000000 Waves 2023.03.22 11:08 [2500971] smart account 3N3irEKCdj77h97aEbfj3fa3uMXCNCXVhKt > SELF 0.00000000 Waves
{ "type": 13, "id": "Dv6g4s8nYtZzRNj42Yh3Mx11sqXC5GJFAmFSTscmfBHg", "fee": 5000000, "feeAssetId": null, "timestamp": 1679472558423, "version": 2, "chainId": 84, "sender": "3N3irEKCdj77h97aEbfj3fa3uMXCNCXVhKt", "senderPublicKey": "FACNGaFYnR8yFbQFg9sRBpzGVCyzMyLeVw3JMhGQT1wn", "proofs": [ "3Y2WdqnWyTaXusdSvBs7hAcFBqkcGbD97LZsZ53YuGKqP739bpRFoDgNsggJg1o2U47Mdkkqgk3Ay9DVP5egZm6j" ], "script": "base64:BgIGCAISABIAAgATcGVwZUNvbnRyYWN0QWRkcmVzcwIjM040a1haSEdrZTZ5UnEzWjU3cTdCVGdDclQyU0N2UUNZRVIADHBlcGVDb250cmFjdAkBEUBleHRyTmF0aXZlKDEwNjIpAQUTcGVwZUNvbnRyYWN0QWRkcmVzcwIBaQEHZ2V0UmF0ZQAEB3Jlc3VsdHMJAPwHBAUMcGVwZUNvbnRyYWN0AgdnZXRSYXRlBQNuaWwFA25pbAQHJG1hdGNoMAUHcmVzdWx0cwMJAAECBQckbWF0Y2gwAgZTdHJpbmcEAXQFByRtYXRjaDAJAJQKAgUDbmlsBQF0CQACAQIFRXJyb3IBaQEHZGVwb3NpdAAEB3Jlc3VsdHMJAPwHBAUMcGVwZUNvbnRyYWN0AgdkZXBvc2l0BQNuaWwIBQFpCHBheW1lbnRzBAckbWF0Y2gwBQdyZXN1bHRzAwkAAQIFByRtYXRjaDACCUxpc3RbQW55XQQDcmVzBQckbWF0Y2gwCQACAQIERXJyMQMJAAECBQckbWF0Y2gwAhEoTGlzdFtBbnldLCBVbml0KQQDcmVzBQckbWF0Y2gwCQACAQIERXJyMgMJAAECBQckbWF0Y2gwAh4oKExpc3RbQW55XSwgTGlzdFtBbnldKSwgVW5pdCkEA3JlcwUHJG1hdGNoMAkAAgECBEVycjMDCQABAgUHJG1hdGNoMAImKChMaXN0W0FueV0sIChMaXN0W0FueV0sIFVuaXQpKSwgVW5pdCkEA3JlcwUHJG1hdGNoMAkAAgECBEVycjQJAAIBAg1lcnJvciBkZXBvc2l0ALx+Bok=", "height": 2500971, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FYuZYmu9ZKTZ4PgiQf91htmbEcaMXVEvpmaCdXh7mnoT Next: 86Z561MoesHGQ3uoirEn2CNJ9nwRGAh2NZs7NxEGYVNt Diff:
Old | New | Differences | |
---|---|---|---|
38 | 38 | let g = e | |
39 | 39 | throw("Err3") | |
40 | 40 | } | |
41 | - | else throw("error deposit") | |
41 | + | else if ($isInstanceOf(e, "((List[Any], (List[Any], Unit)), Unit)")) | |
42 | + | then { | |
43 | + | let g = e | |
44 | + | throw("Err4") | |
45 | + | } | |
46 | + | else throw("error deposit") | |
42 | 47 | } | |
43 | 48 | ||
44 | 49 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "3N4kXZHGke6yRq3Z57q7BTgCrT2SCvQCYER" | |
5 | 5 | ||
6 | 6 | let b = addressFromStringValue(a) | |
7 | 7 | ||
8 | 8 | @Callable(c) | |
9 | 9 | func getRate () = { | |
10 | 10 | let d = invoke(b, "getRate", nil, nil) | |
11 | 11 | let e = d | |
12 | 12 | if ($isInstanceOf(e, "String")) | |
13 | 13 | then { | |
14 | 14 | let f = e | |
15 | 15 | $Tuple2(nil, f) | |
16 | 16 | } | |
17 | 17 | else throw("Error") | |
18 | 18 | } | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | ||
22 | 22 | @Callable(c) | |
23 | 23 | func deposit () = { | |
24 | 24 | let d = invoke(b, "deposit", nil, c.payments) | |
25 | 25 | let e = d | |
26 | 26 | if ($isInstanceOf(e, "List[Any]")) | |
27 | 27 | then { | |
28 | 28 | let g = e | |
29 | 29 | throw("Err1") | |
30 | 30 | } | |
31 | 31 | else if ($isInstanceOf(e, "(List[Any], Unit)")) | |
32 | 32 | then { | |
33 | 33 | let g = e | |
34 | 34 | throw("Err2") | |
35 | 35 | } | |
36 | 36 | else if ($isInstanceOf(e, "((List[Any], List[Any]), Unit)")) | |
37 | 37 | then { | |
38 | 38 | let g = e | |
39 | 39 | throw("Err3") | |
40 | 40 | } | |
41 | - | else throw("error deposit") | |
41 | + | else if ($isInstanceOf(e, "((List[Any], (List[Any], Unit)), Unit)")) | |
42 | + | then { | |
43 | + | let g = e | |
44 | + | throw("Err4") | |
45 | + | } | |
46 | + | else throw("error deposit") | |
42 | 47 | } | |
43 | 48 | ||
44 | 49 |
github/deemru/w8io/169f3d6 25.64 ms ◑