tx · Fs9osxYKiHkbWz5cWuuEMkBo4i2dDtW961v8BKy5GncS

3N3irEKCdj77h97aEbfj3fa3uMXCNCXVhKt:  -0.05000000 Waves

2023.03.22 10:27 [2500931] smart account 3N3irEKCdj77h97aEbfj3fa3uMXCNCXVhKt > SELF 0.00000000 Waves

{ "type": 13, "id": "Fs9osxYKiHkbWz5cWuuEMkBo4i2dDtW961v8BKy5GncS", "fee": 5000000, "feeAssetId": null, "timestamp": 1679470084502, "version": 2, "chainId": 84, "sender": "3N3irEKCdj77h97aEbfj3fa3uMXCNCXVhKt", "senderPublicKey": "FACNGaFYnR8yFbQFg9sRBpzGVCyzMyLeVw3JMhGQT1wn", "proofs": [ "4TqWAv4nfajJjfCNGAe5ixr36TbXrRUfwwvJaZtoCe2Yfa7vKTYmEMi5JDazqUbM7E3KXWsFPmcS9ceEgkNqe51" ], "script": "base64:BgIECAISAAIAE3BlcGVDb250cmFjdEFkZHJlc3MCIzNONGtYWkhHa2U2eVJxM1o1N3E3QlRnQ3JUMlNDdlFDWUVSAAxwZXBlQ29udHJhY3QJARFAZXh0ck5hdGl2ZSgxMDYyKQEFE3BlcGVDb250cmFjdEFkZHJlc3MBAWkBB2dldFJhdGUABAdyZXN1bHRzCQD8BwQFDHBlcGVDb250cmFjdAIHZ2V0UmF0ZQUDbmlsBQNuaWwEByRtYXRjaDAFB3Jlc3VsdHMDCQABAgUHJG1hdGNoMAIGU3RyaW5nBAF0BQckbWF0Y2gwCQCUCgIFA25pbAUBdAkAAgECBUVycm9yAPBBNkY=", "height": 2500931, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GtE5ZaUoLBVtUaB9tnW5ZoyBJuJQza3mQrQx5YYWbejR Next: 8YRLRBsoHsBSXDuf4CLY359k2BdABFrufoGJMLMxdAzx Diff:
OldNewDifferences
99 func getRate () = {
1010 let d = invoke(b, "getRate", nil, nil)
1111 let e = d
12- if ($isInstanceOf(e, "(Unit, String)"))
12+ if ($isInstanceOf(e, "String"))
1313 then {
1414 let f = e
15-[StringEntry("rate1", f._2)]
15+ $Tuple2(nil, f)
1616 }
17- else if ($isInstanceOf(e, "(List[Any], String)"))
18- then {
19- let f = e
20-[StringEntry("rate2", f._2)]
21- }
22- else if ($isInstanceOf(e, "(String)"))
23- then {
24- let f = e
25-[StringEntry("rate3", f._2)]
26- }
27- else if ($isInstanceOf(e, "String"))
28- then {
29- let f = e
30-[StringEntry("rate4", f)]
31- }
32- else [IntegerEntry("fail", height)]
17+ else throw("Error")
3318 }
3419
3520
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "3N4kXZHGke6yRq3Z57q7BTgCrT2SCvQCYER"
55
66 let b = addressFromStringValue(a)
77
88 @Callable(c)
99 func getRate () = {
1010 let d = invoke(b, "getRate", nil, nil)
1111 let e = d
12- if ($isInstanceOf(e, "(Unit, String)"))
12+ if ($isInstanceOf(e, "String"))
1313 then {
1414 let f = e
15-[StringEntry("rate1", f._2)]
15+ $Tuple2(nil, f)
1616 }
17- else if ($isInstanceOf(e, "(List[Any], String)"))
18- then {
19- let f = e
20-[StringEntry("rate2", f._2)]
21- }
22- else if ($isInstanceOf(e, "(String)"))
23- then {
24- let f = e
25-[StringEntry("rate3", f._2)]
26- }
27- else if ($isInstanceOf(e, "String"))
28- then {
29- let f = e
30-[StringEntry("rate4", f)]
31- }
32- else [IntegerEntry("fail", height)]
17+ else throw("Error")
3318 }
3419
3520

github/deemru/w8io/169f3d6 
44.97 ms