tx · 2QeTbFHbUwzFeqeV46HMsMsjat1uTaFx8TYsukFR7Nbf
3N3irEKCdj77h97aEbfj3fa3uMXCNCXVhKt: -0.05000000 Waves
2023.03.22 11:33 [2500996] smart account 3N3irEKCdj77h97aEbfj3fa3uMXCNCXVhKt > SELF 0.00000000 Waves
{
"type": 13,
"id": "2QeTbFHbUwzFeqeV46HMsMsjat1uTaFx8TYsukFR7Nbf",
"fee": 5000000,
"feeAssetId": null,
"timestamp": 1679474026786,
"version": 2,
"chainId": 84,
"sender": "3N3irEKCdj77h97aEbfj3fa3uMXCNCXVhKt",
"senderPublicKey": "FACNGaFYnR8yFbQFg9sRBpzGVCyzMyLeVw3JMhGQT1wn",
"proofs": [
"2254qLQSreQeyzVymw6DvLBWU12mephZq9Tg12kzhQMVNW4pyEvL59f262vXVeEo6czfGrs6gUdBMPmFfDKXvkez"
],
"script": "base64:BgIGCAISABIAAgATcGVwZUNvbnRyYWN0QWRkcmVzcwIjM040a1haSEdrZTZ5UnEzWjU3cTdCVGdDclQyU0N2UUNZRVIADHBlcGVDb250cmFjdAkBEUBleHRyTmF0aXZlKDEwNjIpAQUTcGVwZUNvbnRyYWN0QWRkcmVzcwIBaQEHZ2V0UmF0ZQAEB3Jlc3VsdHMJAPwHBAUMcGVwZUNvbnRyYWN0AgdnZXRSYXRlBQNuaWwFA25pbAQHJG1hdGNoMAUHcmVzdWx0cwMJAAECBQckbWF0Y2gwAgZTdHJpbmcEAXQFByRtYXRjaDAJAJQKAgUDbmlsBQF0CQACAQIFRXJyb3IBaQEHZGVwb3NpdAAEB3Jlc3VsdHMJAPwHBAUMcGVwZUNvbnRyYWN0AgdkZXBvc2l0BQNuaWwIBQFpCHBheW1lbnRzBAckbWF0Y2gwBQdyZXN1bHRzAwkAAQIFByRtYXRjaDACBFVuaXQEAWEFByRtYXRjaDAFA25pbAkAAgECDUVycm9yIGRlcG9zaXQAFHEh8g==",
"height": 2500996,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 86Z561MoesHGQ3uoirEn2CNJ9nwRGAh2NZs7NxEGYVNt
Next: 6dqSR13AkJcTe5n48uyEH118aPSDkV82espR2dK82kZs
Diff:
Old | New | | Differences |
---|
23 | 23 | | let results = invoke(pepeContract, "deposit", nil, i.payments) |
---|
24 | 24 | | match results { |
---|
25 | 25 | | case a: Unit => |
---|
26 | | - | throw("Err1") |
---|
27 | | - | case b: List[Any] => |
---|
28 | | - | throw("Err2") |
---|
| 26 | + | nil |
---|
29 | 27 | | case _ => |
---|
30 | 28 | | throw("Error deposit") |
---|
31 | 29 | | } |
---|
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 | 12 | | case t: String => |
---|
13 | 13 | | $Tuple2(nil, t) |
---|
14 | 14 | | case _ => |
---|
15 | 15 | | throw("Error") |
---|
16 | 16 | | } |
---|
17 | 17 | | } |
---|
18 | 18 | | |
---|
19 | 19 | | |
---|
20 | 20 | | |
---|
21 | 21 | | @Callable(i) |
---|
22 | 22 | | func deposit () = { |
---|
23 | 23 | | let results = invoke(pepeContract, "deposit", nil, i.payments) |
---|
24 | 24 | | match results { |
---|
25 | 25 | | case a: Unit => |
---|
26 | | - | throw("Err1") |
---|
27 | | - | case b: List[Any] => |
---|
28 | | - | throw("Err2") |
---|
| 26 | + | nil |
---|
29 | 27 | | case _ => |
---|
30 | 28 | | throw("Error deposit") |
---|
31 | 29 | | } |
---|
32 | 30 | | } |
---|
33 | 31 | | |
---|
34 | 32 | | |
---|