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:
Old | New | | Differences |
---|
9 | 9 | | func getRate () = { |
---|
10 | 10 | | let d = invoke(b, "getRate", nil, nil) |
---|
11 | 11 | | let e = d |
---|
12 | | - | if ($isInstanceOf(e, "(Unit, String)")) |
---|
| 12 | + | if ($isInstanceOf(e, "String")) |
---|
13 | 13 | | then { |
---|
14 | 14 | | let f = e |
---|
15 | | - | [StringEntry("rate1", f._2)] |
---|
| 15 | + | $Tuple2(nil, f) |
---|
16 | 16 | | } |
---|
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") |
---|
33 | 18 | | } |
---|
34 | 19 | | |
---|
35 | 20 | | |
---|
Full:
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 | | - | if ($isInstanceOf(e, "(Unit, String)")) |
---|
| 12 | + | if ($isInstanceOf(e, "String")) |
---|
13 | 13 | | then { |
---|
14 | 14 | | let f = e |
---|
15 | | - | [StringEntry("rate1", f._2)] |
---|
| 15 | + | $Tuple2(nil, f) |
---|
16 | 16 | | } |
---|
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") |
---|
33 | 18 | | } |
---|
34 | 19 | | |
---|
35 | 20 | | |
---|