tx · 32eBRuG5i299FgsN7Aknw1YotpJecnfvviCHc7mtC12i 3N38TQrBBEMzBaDvd7FLc17TvpDSaUKrRPx: -0.01000000 Waves 2021.09.30 15:18 [1725686] smart account 3N38TQrBBEMzBaDvd7FLc17TvpDSaUKrRPx > SELF 0.00000000 Waves
{ "type": 13, "id": "32eBRuG5i299FgsN7Aknw1YotpJecnfvviCHc7mtC12i", "fee": 1000000, "feeAssetId": null, "timestamp": 1633004306314, "version": 2, "chainId": 84, "sender": "3N38TQrBBEMzBaDvd7FLc17TvpDSaUKrRPx", "senderPublicKey": "9a8JNLXFvTm9Bd3kg8DyJr3itTNZhfReuJtgPGzSTPLQ", "proofs": [ "3CnEYnegXapy7Hq2H3d7WV5UhsYE8M669rTnQwdbPPEkc4oLERRZ22ZMdRgnPMebMSakv9YJbhCzZJzut5jErowM" ], "script": "base64:AAIFAAAAAAAAAAYIAhIAEgAAAAADAQAAAAJmMQAAAAEAAAABYQMJAAABAAAAAgUAAAABYQIAAAADSW50BQAAAAFhBQAAAAR1bml0AQAAAAJmMgAAAAEAAAABYQMJAAABAAAAAgUAAAABYQIAAAANKEludCwgU3RyaW5nKQUAAAABYQUAAAAEdW5pdAEAAAACZjMAAAABAAAAAWEDCQAAAQAAAAIFAAAAAWECAAAACUxpc3RbQW55XQUAAAABYQkAAAIAAAABAgAAAB5Db3VsZG4ndCBjYXN0IEFueSB0byBMaXN0W0FueV0AAAACAAAAAWkBAAAABWNhbGwxAAAAAAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAACMTEEAAAAByRtYXRjaDAJAQAAAAJmMQAAAAEAAAAAAAAAAAoDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABdAUAAAAHJG1hdGNoMAkAAGQAAAACBQAAAAF0AAAAAAAAAAABAP////////+cCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAAjEyBAAAAAckbWF0Y2gwCQEAAAACZjEAAAABAgAAAAVXYXZlcwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAEVW5pdAQAAAABdAUAAAAHJG1hdGNoMAIAAAAEdW5pdAIAAAAFb3RoZXIJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAACMjEEAAAAByRtYXRjaDAJAQAAAAJmMgAAAAEJAAUUAAAAAgAAAAAAAAAACwIAAAAEUmlkZQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAANKEludCwgU3RyaW5nKQQAAAABdAUAAAAHJG1hdGNoMAkAASwAAAACCAUAAAABdAAAAAJfMgIAAAALIHRoZSBXYXZlcyECAAAABW90aGVyCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAAjIyBAAAAAckbWF0Y2gwCQEAAAACZjIAAAABBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAEVW5pdAQAAAABdAUAAAAHJG1hdGNoMAIAAAAEdW5pdAIAAAAFb3RoZXIJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAAjIzBAAAAAckbWF0Y2gwCQABkQAAAAIJAQAAAAJmMwAAAAEJAARMAAAAAgAAAAAAAAAADAkABEwAAAACAgAAAARSaWRlBQAAAANuaWwAAAAAAAAAAAADCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABZQUAAAAHJG1hdGNoMAUAAAABZQD/////////nAUAAAADbmlsAAAAAWkBAAAABWNhbGwyAAAAAAQAAAABYQkBAAAAAmYzAAAAAQAAAAAAAAAAWAMJAAAAAAAAAgUAAAABYQUAAAABYQkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAAIzMgIAAAACb2sFAAAAA25pbAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAAAMxHMKQ==", "height": 1725686, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GQuMpVjWxhC8hfeSzgp56RXH9LMcpf7VXBuAcHqBNx8P Next: CG3oKNKWmECa99EZjKVGLwMWLy4YaJYk7W82Ur7yLCdk Diff:
Old | New | Differences | |
---|---|---|---|
37 | 37 | "unit" | |
38 | 38 | case _ => | |
39 | 39 | "other" | |
40 | - | }), IntegerEntry("31", match f3([12, "Ride"]) { | |
41 | - | case t: List[Any] => | |
42 | - | match t[0] { | |
43 | - | case e: Int => | |
44 | - | e | |
45 | - | case _ => | |
46 | - | -100 | |
47 | - | } | |
40 | + | }), IntegerEntry("23", match f3([12, "Ride"])[0] { | |
41 | + | case e: Int => | |
42 | + | e | |
48 | 43 | case _ => | |
49 | 44 | -100 | |
50 | 45 | })] |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func f1 (a) = if ($isInstanceOf(a, "Int")) | |
5 | 5 | then a | |
6 | 6 | else unit | |
7 | 7 | ||
8 | 8 | ||
9 | 9 | func f2 (a) = if ($isInstanceOf(a, "(Int, String)")) | |
10 | 10 | then a | |
11 | 11 | else unit | |
12 | 12 | ||
13 | 13 | ||
14 | 14 | func f3 (a) = if ($isInstanceOf(a, "List[Any]")) | |
15 | 15 | then a | |
16 | 16 | else throw("Couldn't cast Any to List[Any]") | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | @Callable(i) | |
20 | 20 | func call1 () = [IntegerEntry("11", match f1(10) { | |
21 | 21 | case t: Int => | |
22 | 22 | (t + 1) | |
23 | 23 | case _ => | |
24 | 24 | -100 | |
25 | 25 | }), StringEntry("12", match f1("Waves") { | |
26 | 26 | case t: Unit => | |
27 | 27 | "unit" | |
28 | 28 | case _ => | |
29 | 29 | "other" | |
30 | 30 | }), StringEntry("21", match f2($Tuple2(11, "Ride")) { | |
31 | 31 | case t: (Int, String) => | |
32 | 32 | (t._2 + " the Waves!") | |
33 | 33 | case _ => | |
34 | 34 | "other" | |
35 | 35 | }), StringEntry("22", match f2(true) { | |
36 | 36 | case t: Unit => | |
37 | 37 | "unit" | |
38 | 38 | case _ => | |
39 | 39 | "other" | |
40 | - | }), IntegerEntry("31", match f3([12, "Ride"]) { | |
41 | - | case t: List[Any] => | |
42 | - | match t[0] { | |
43 | - | case e: Int => | |
44 | - | e | |
45 | - | case _ => | |
46 | - | -100 | |
47 | - | } | |
40 | + | }), IntegerEntry("23", match f3([12, "Ride"])[0] { | |
41 | + | case e: Int => | |
42 | + | e | |
48 | 43 | case _ => | |
49 | 44 | -100 | |
50 | 45 | })] | |
51 | 46 | ||
52 | 47 | ||
53 | 48 | ||
54 | 49 | @Callable(i) | |
55 | 50 | func call2 () = { | |
56 | 51 | let a = f3(88) | |
57 | 52 | if ((a == a)) | |
58 | 53 | then [StringEntry("32", "ok")] | |
59 | 54 | else throw("Strict value is not equal to itself.") | |
60 | 55 | } | |
61 | 56 | ||
62 | 57 |
github/deemru/w8io/169f3d6 24.03 ms ◑