tx · 685DpbXXLtJ6V4VTpKBYdMJKKtojeRtFxqzcW2PrwZCu
3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat: -0.00100000 Waves
2023.02.25 01:28 [2464357] smart account 3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat > SELF 0.00000000 Waves
{
"type": 13,
"id": "685DpbXXLtJ6V4VTpKBYdMJKKtojeRtFxqzcW2PrwZCu",
"fee": 100000,
"feeAssetId": null,
"timestamp": 1677277701176,
"version": 2,
"chainId": 84,
"sender": "3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat",
"senderPublicKey": "AwWYbCDs6GDxAT6diG2mfEqD7tFz9JXu9k234FS135kR",
"proofs": [
"5cfNXQsEXcyQ8AZgQprgJqCorXEzj6tTZj2vkxnKNaPJq24PPy5o2rL9LwJRkiqyn3v7ETRVqfnZeKFCbTsvvtsu"
],
"script": "base64:BgIGCAISABIAAQEJc29tZV9mdW5jAAkAlQoDACgAMgA8AgFpAQZmdW5jXzEABAZyZXN1bHQJAQlzb21lX2Z1bmMABAkkdDAzMTUzMzcFBnJlc3VsdAQBYQgFCSR0MDMxNTMzNwJfMQQBYggFCSR0MDMxNTMzNwJfMgQBYwgFCSR0MDMxNTMzNwJfMwkAlAoCBQNuaWwCDFJldHVybiB2YWx1ZQFpAQZmdW5jXzIABARhZGRyAiMzTjVKdTY0dVRQdWFSNE00ZjlZQjVMUllSTkozODJNV3JhdAQNaW52b2tlX3Jlc3VsdAoAAUAJAPwHBAUEdGhpcwIGZnVuY18xBQNuaWwFA25pbAMJAAECBQFAAgZTdHJpbmcFAUAJAAIBCQCsAgIJAAMBBQFAAhsgY291bGRuJ3QgYmUgY2FzdCB0byBTdHJpbmcFA25pbAA1mDU9",
"height": 2464357,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 3aELsFYUoLishK8tVoY9GcFBTJLqbfoVMkDwMMvEGXef
Next: 551RwxcD36Sdkz3qVQeaZ53ujkqSYRWUWK2dXCzwgza2
Diff:
Old | New | | Differences |
---|
7 | 7 | | @Callable(i) |
---|
8 | 8 | | func func_1 () = { |
---|
9 | 9 | | let result = some_func() |
---|
10 | | - | let a = result._1 |
---|
11 | | - | let b = result._2 |
---|
12 | | - | let c = result._3 |
---|
13 | | - | throw(((((toString(a) + " ") + toString(b)) + " ") + toString(c))) |
---|
| 10 | + | let $t0315337 = result |
---|
| 11 | + | let a = $t0315337._1 |
---|
| 12 | + | let b = $t0315337._2 |
---|
| 13 | + | let c = $t0315337._3 |
---|
| 14 | + | $Tuple2(nil, "Return value") |
---|
14 | 15 | | } |
---|
15 | 16 | | |
---|
16 | 17 | | |
---|
|
18 | 19 | | @Callable(i) |
---|
19 | 20 | | func func_2 () = { |
---|
20 | 21 | | let addr = "3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat" |
---|
21 | | - | let invoke_result = invoke(this, "func_1", nil, nil) |
---|
| 22 | + | let invoke_result = { |
---|
| 23 | + | let @ = invoke(this, "func_1", nil, nil) |
---|
| 24 | + | if ($isInstanceOf(@, "String")) |
---|
| 25 | + | then @ |
---|
| 26 | + | else throw(($getType(@) + " couldn't be cast to String")) |
---|
| 27 | + | } |
---|
22 | 28 | | nil |
---|
23 | 29 | | } |
---|
24 | 30 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func some_func () = $Tuple3(40, 50, 60) |
---|
5 | 5 | | |
---|
6 | 6 | | |
---|
7 | 7 | | @Callable(i) |
---|
8 | 8 | | func func_1 () = { |
---|
9 | 9 | | let result = some_func() |
---|
10 | | - | let a = result._1 |
---|
11 | | - | let b = result._2 |
---|
12 | | - | let c = result._3 |
---|
13 | | - | throw(((((toString(a) + " ") + toString(b)) + " ") + toString(c))) |
---|
| 10 | + | let $t0315337 = result |
---|
| 11 | + | let a = $t0315337._1 |
---|
| 12 | + | let b = $t0315337._2 |
---|
| 13 | + | let c = $t0315337._3 |
---|
| 14 | + | $Tuple2(nil, "Return value") |
---|
14 | 15 | | } |
---|
15 | 16 | | |
---|
16 | 17 | | |
---|
17 | 18 | | |
---|
18 | 19 | | @Callable(i) |
---|
19 | 20 | | func func_2 () = { |
---|
20 | 21 | | let addr = "3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat" |
---|
21 | | - | let invoke_result = invoke(this, "func_1", nil, nil) |
---|
| 22 | + | let invoke_result = { |
---|
| 23 | + | let @ = invoke(this, "func_1", nil, nil) |
---|
| 24 | + | if ($isInstanceOf(@, "String")) |
---|
| 25 | + | then @ |
---|
| 26 | + | else throw(($getType(@) + " couldn't be cast to String")) |
---|
| 27 | + | } |
---|
22 | 28 | | nil |
---|
23 | 29 | | } |
---|
24 | 30 | | |
---|
25 | 31 | | |
---|