tx · DY4Q1gEuEo1eTzaazeThV3hnUwFcJgYCdKfcx1VkGWH7
3N3irEKCdj77h97aEbfj3fa3uMXCNCXVhKt: -0.05000000 Waves
2023.03.22 09:49 [2500890] smart account 3N3irEKCdj77h97aEbfj3fa3uMXCNCXVhKt > SELF 0.00000000 Waves
{
"type": 13,
"id": "DY4Q1gEuEo1eTzaazeThV3hnUwFcJgYCdKfcx1VkGWH7",
"fee": 5000000,
"feeAssetId": null,
"timestamp": 1679467786501,
"version": 2,
"chainId": 84,
"sender": "3N3irEKCdj77h97aEbfj3fa3uMXCNCXVhKt",
"senderPublicKey": "FACNGaFYnR8yFbQFg9sRBpzGVCyzMyLeVw3JMhGQT1wn",
"proofs": [
"5Mr7km2bbbkqN6r3hjhX7T31pgWZCe4o4pFTaaEtaPPNm7KfqwuM1WCWiYah3QgQTPstM7rSPScNDdmRDUHufYfZ"
],
"script": "base64:BgIECAISAAIAE3BlcGVDb250cmFjdEFkZHJlc3MCIzNONGtYWkhHa2U2eVJxM1o1N3E3QlRnQ3JUMlNDdlFDWUVSAAxwZXBlQ29udHJhY3QJARFAZXh0ck5hdGl2ZSgxMDYyKQEFE3BlcGVDb250cmFjdEFkZHJlc3MBAWkBB2dldFJhdGUABAdyZXN1bHRzCQD8BwQFDHBlcGVDb250cmFjdAIHZ2V0UmF0ZQUDbmlsCAUBaQhwYXltZW50cwQHJG1hdGNoMAUHcmVzdWx0cwMJAAECBQckbWF0Y2gwAiAoTGlzdFtBbnldLCAoTGlzdFtBbnldLCBTdHJpbmcpKQQBdAUHJG1hdGNoMAkAzAgCCQELU3RyaW5nRW50cnkCAgRyYXRlCAgFAXQCXzICXzIFA25pbAkAzAgCCQEMSW50ZWdlckVudHJ5AgIEZmFpbAUGaGVpZ2h0BQNuaWwAeW/7pQ==",
"height": 2500890,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: BqPDmytnqBxrzKoEUvUkUQMjbpfXpN22NFAe9gfnBnbq
Next: Ab8ew4MSpyD4pBFakTfux5LrXhMetVYecCuY7GNKMkLL
Diff:
Old | New | | Differences |
---|
9 | 9 | | func getRate () = { |
---|
10 | 10 | | let results = invoke(pepeContract, "getRate", nil, i.payments) |
---|
11 | 11 | | match results { |
---|
12 | | - | case t: (List[Any], String) => |
---|
13 | | - | [StringEntry("rate", t._2)] |
---|
| 12 | + | case t: (List[Any], (List[Any], String)) => |
---|
| 13 | + | [StringEntry("rate", t._2._2)] |
---|
14 | 14 | | case _ => |
---|
15 | | - | nil |
---|
| 15 | + | [IntegerEntry("fail", height)] |
---|
16 | 16 | | } |
---|
17 | 17 | | } |
---|
18 | 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, i.payments) |
---|
11 | 11 | | match results { |
---|
12 | | - | case t: (List[Any], String) => |
---|
13 | | - | [StringEntry("rate", t._2)] |
---|
| 12 | + | case t: (List[Any], (List[Any], String)) => |
---|
| 13 | + | [StringEntry("rate", t._2._2)] |
---|
14 | 14 | | case _ => |
---|
15 | | - | nil |
---|
| 15 | + | [IntegerEntry("fail", height)] |
---|
16 | 16 | | } |
---|
17 | 17 | | } |
---|
18 | 18 | | |
---|
19 | 19 | | |
---|