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 results = invoke(pepeContract, "getRate", nil, nil) |
---|
11 | 11 | | match results { |
---|
12 | | - | case t: (Unit, String) => |
---|
13 | | - | [StringEntry("rate1", t._2)] |
---|
14 | | - | case t: (List[Any], String) => |
---|
15 | | - | [StringEntry("rate2", t._2)] |
---|
16 | | - | case t: (String) => |
---|
17 | | - | [StringEntry("rate3", t._2)] |
---|
18 | 12 | | case t: String => |
---|
19 | | - | [StringEntry("rate4", t)] |
---|
| 13 | + | $Tuple2(nil, t) |
---|
20 | 14 | | case _ => |
---|
21 | | - | [IntegerEntry("fail", height)] |
---|
| 15 | + | throw("Error") |
---|
22 | 16 | | } |
---|
23 | 17 | | } |
---|
24 | 18 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let pepeContractAddress = "3N4kXZHGke6yRq3Z57q7BTgCrT2SCvQCYER" |
---|
5 | 5 | | |
---|
6 | 6 | | let pepeContract = addressFromStringValue(pepeContractAddress) |
---|
7 | 7 | | |
---|
8 | 8 | | @Callable(i) |
---|
9 | 9 | | func getRate () = { |
---|
10 | 10 | | let results = invoke(pepeContract, "getRate", nil, nil) |
---|
11 | 11 | | match results { |
---|
12 | | - | case t: (Unit, String) => |
---|
13 | | - | [StringEntry("rate1", t._2)] |
---|
14 | | - | case t: (List[Any], String) => |
---|
15 | | - | [StringEntry("rate2", t._2)] |
---|
16 | | - | case t: (String) => |
---|
17 | | - | [StringEntry("rate3", t._2)] |
---|
18 | 12 | | case t: String => |
---|
19 | | - | [StringEntry("rate4", t)] |
---|
| 13 | + | $Tuple2(nil, t) |
---|
20 | 14 | | case _ => |
---|
21 | | - | [IntegerEntry("fail", height)] |
---|
| 15 | + | throw("Error") |
---|
22 | 16 | | } |
---|
23 | 17 | | } |
---|
24 | 18 | | |
---|
25 | 19 | | |
---|