tx · 5mRuJkRfzR8cXVvvoW9vhsPQPNXBdFCWGpiuh1u2T232
3N3irEKCdj77h97aEbfj3fa3uMXCNCXVhKt: -0.05000000 Waves
2023.03.22 10:48 [2500950] smart account 3N3irEKCdj77h97aEbfj3fa3uMXCNCXVhKt > SELF 0.00000000 Waves
{
"type": 13,
"id": "5mRuJkRfzR8cXVvvoW9vhsPQPNXBdFCWGpiuh1u2T232",
"fee": 5000000,
"feeAssetId": null,
"timestamp": 1679471325521,
"version": 2,
"chainId": 84,
"sender": "3N3irEKCdj77h97aEbfj3fa3uMXCNCXVhKt",
"senderPublicKey": "FACNGaFYnR8yFbQFg9sRBpzGVCyzMyLeVw3JMhGQT1wn",
"proofs": [
"2KQvDsvB2eGGmSFg8hZTSKeGLFCjAB4xbrjX2Jc26SGgHGA9Z9qi6Ap31xSLRV9s5PVppCSpe3PeyHABXzmc7iQi"
],
"script": "base64:BgIGCAISABIAAgATcGVwZUNvbnRyYWN0QWRkcmVzcwIjM040a1haSEdrZTZ5UnEzWjU3cTdCVGdDclQyU0N2UUNZRVIADHBlcGVDb250cmFjdAkBEUBleHRyTmF0aXZlKDEwNjIpAQUTcGVwZUNvbnRyYWN0QWRkcmVzcwIBaQEHZ2V0UmF0ZQAEB3Jlc3VsdHMJAPwHBAUMcGVwZUNvbnRyYWN0AgdnZXRSYXRlBQNuaWwFA25pbAQHJG1hdGNoMAUHcmVzdWx0cwMJAAECBQckbWF0Y2gwAgZTdHJpbmcEAXQFByRtYXRjaDAJAJQKAgUDbmlsBQF0CQACAQIFRXJyb3IBaQEHZGVwb3NpdAAEB3Jlc3VsdHMJAPwHBAUMcGVwZUNvbnRyYWN0AgdkZXBvc2l0BQNuaWwIBQFpCHBheW1lbnRzBAckbWF0Y2gwBQdyZXN1bHRzAwkAAQIFByRtYXRjaDACCUxpc3RbQW55XQQDcmVzBQckbWF0Y2gwCQACAQICbTEDCQABAgUHJG1hdGNoMAIRKExpc3RbQW55XSwgVW5pdCkEA3JlcwUHJG1hdGNoMAkAAgECAm0yAwkAAQIFByRtYXRjaDACGSgoTGlzdFtBbnldLCBVbml0KSwgVW5pdCkEA3JlcwUHJG1hdGNoMAkAAgECAm0zCQACAQINZXJyb3IgZGVwb3NpdAAKwySO",
"height": 2500950,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: FmsAYDjvpriraX8ZriZJfLKMJMqhuEbpQD45mntyWUqq
Next: EvjZaQqVZUYeFYKw5bXdWwzQxhgzfqmNJWkrfw26JWkp
Diff:
Old | New | | Differences |
---|
23 | 23 | | let results = invoke(pepeContract, "deposit", nil, i.payments) |
---|
24 | 24 | | match results { |
---|
25 | 25 | | case res: List[Any] => |
---|
26 | | - | match res[2] { |
---|
27 | | - | case t: ScriptTransfer => |
---|
28 | | - | [ScriptTransfer(i.caller, t.amount, t.asset)] |
---|
29 | | - | case _ => |
---|
30 | | - | throw("Error2") |
---|
31 | | - | } |
---|
| 26 | + | throw("m1") |
---|
| 27 | + | case res: (List[Any], Unit) => |
---|
| 28 | + | throw("m2") |
---|
| 29 | + | case res: ((List[Any], Unit), Unit) => |
---|
| 30 | + | throw("m3") |
---|
32 | 31 | | case _ => |
---|
33 | 32 | | throw("error deposit") |
---|
34 | 33 | | } |
---|
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 res: List[Any] => |
---|
26 | | - | match res[2] { |
---|
27 | | - | case t: ScriptTransfer => |
---|
28 | | - | [ScriptTransfer(i.caller, t.amount, t.asset)] |
---|
29 | | - | case _ => |
---|
30 | | - | throw("Error2") |
---|
31 | | - | } |
---|
| 26 | + | throw("m1") |
---|
| 27 | + | case res: (List[Any], Unit) => |
---|
| 28 | + | throw("m2") |
---|
| 29 | + | case res: ((List[Any], Unit), Unit) => |
---|
| 30 | + | throw("m3") |
---|
32 | 31 | | case _ => |
---|
33 | 32 | | throw("error deposit") |
---|
34 | 33 | | } |
---|
35 | 34 | | } |
---|
36 | 35 | | |
---|
37 | 36 | | |
---|