tx · F3Vn7yYoGiwzPoiP8HyCWtbTB9hwqKL2nwK41MYEBH7X
3MxN9yafHqAds69z7NeaYgeXjeDUdzJya1M: -0.01000000 Waves
2023.03.21 21:37 [2500144] smart account 3MxN9yafHqAds69z7NeaYgeXjeDUdzJya1M > SELF 0.00000000 Waves
{
"type": 13,
"id": "F3Vn7yYoGiwzPoiP8HyCWtbTB9hwqKL2nwK41MYEBH7X",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1679423871165,
"version": 2,
"chainId": 84,
"sender": "3MxN9yafHqAds69z7NeaYgeXjeDUdzJya1M",
"senderPublicKey": "CPR2z4Q8kdV2M4JHaFVVTRzdEWPUA1Whqtw6SWE8kyU9",
"proofs": [
"pV1o5s21d5otakPh8n3detFK9rcA8VeXw93AouneM8iTPef25s7kka9hYixaG3A2Qdzst8XLdaFLXMX4K3tjda2"
],
"script": "base64:BgILCAISABIFCgMBAREAAgFpAQtleGFtcGxlQ2FsbAAEAXoJAP0HBAUEdGhpcwIRaW50ZXJuYWxSZWN1cnNpb24JAMwIAgAKCQDMCAIAAAkAzAgCBQNuaWwFA25pbAUDbmlsAwkAAAIFAXoFAXoEByRtYXRjaDAFAXoDCQABAgUHJG1hdGNoMAIDSW50BARsaXN0BQckbWF0Y2gwCQDMCAIJAQxJbnRlZ2VyRW50cnkCAglMaXN0IHNpemUFBGxpc3QFA25pbAkAAgECHldyb25nIGludGVybmFsIGZ1bmN0aW9uIHJlc3VsdAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgFpARFpbnRlcm5hbFJlY3Vyc2lvbgMNbWF4SXRlcmF0aW9ucxBjdXJyZW50SXRlcmF0aW9uEWFjY3VtdWxhdGVkUmVzdWx0AwkBAiE9AggFAWkGY2FsbGVyBQR0aGlzCQACAQIjT25seSBjYW4gYmUgY2FsbGVkIGJ5IHRoaXMgY29udHJhY3QDCQBmAgUNbWF4SXRlcmF0aW9ucwUQY3VycmVudEl0ZXJhdGlvbgQBegkA/QcEBQR0aGlzAhFpbnRlcm5hbFJlY3Vyc2lvbgkAzAgCBQ1tYXhJdGVyYXRpb25zCQDMCAIJAGQCBRBjdXJyZW50SXRlcmF0aW9uAAEJAMwIAgkAzQgCBRFhY2N1bXVsYXRlZFJlc3VsdAUQY3VycmVudEl0ZXJhdGlvbgUDbmlsBQNuaWwDCQAAAgUBegUBegUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQCUCgIFA25pbABkAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleTkNTuo=",
"height": 2500144,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: CVggWNjra9Aq2kE3E9k13vNvV7zUs7jKZ54c5hYfRs9P
Next: 7TQPYUwpdLSJ461qKb31nXcBsdyUm6xzh7MT5vGtUmSn
Diff:
Old | New | | Differences |
---|
8 | 8 | | let z = reentrantInvoke(this, "internalRecursion", [10, 0, nil], nil) |
---|
9 | 9 | | if ((z == z)) |
---|
10 | 10 | | then match z { |
---|
11 | | - | case list: List[Any] => |
---|
12 | | - | [IntegerEntry("List size", size(list))] |
---|
| 11 | + | case list: Int => |
---|
| 12 | + | [IntegerEntry("List size", list)] |
---|
13 | 13 | | case _ => |
---|
14 | 14 | | throw("Wrong internal function result") |
---|
15 | 15 | | } |
---|
|
28 | 28 | | then nil |
---|
29 | 29 | | else throw("Strict value is not equal to itself.") |
---|
30 | 30 | | } |
---|
31 | | - | else $Tuple2(nil, accumulatedResult) |
---|
| 31 | + | else $Tuple2(nil, 100) |
---|
32 | 32 | | |
---|
33 | 33 | | |
---|
34 | 34 | | @Verifier(tx) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func exampleCall () = { |
---|
8 | 8 | | let z = reentrantInvoke(this, "internalRecursion", [10, 0, nil], nil) |
---|
9 | 9 | | if ((z == z)) |
---|
10 | 10 | | then match z { |
---|
11 | | - | case list: List[Any] => |
---|
12 | | - | [IntegerEntry("List size", size(list))] |
---|
| 11 | + | case list: Int => |
---|
| 12 | + | [IntegerEntry("List size", list)] |
---|
13 | 13 | | case _ => |
---|
14 | 14 | | throw("Wrong internal function result") |
---|
15 | 15 | | } |
---|
16 | 16 | | else throw("Strict value is not equal to itself.") |
---|
17 | 17 | | } |
---|
18 | 18 | | |
---|
19 | 19 | | |
---|
20 | 20 | | |
---|
21 | 21 | | @Callable(i) |
---|
22 | 22 | | func internalRecursion (maxIterations,currentIteration,accumulatedResult) = if ((i.caller != this)) |
---|
23 | 23 | | then throw("Only can be called by this contract") |
---|
24 | 24 | | else if ((maxIterations > currentIteration)) |
---|
25 | 25 | | then { |
---|
26 | 26 | | let z = reentrantInvoke(this, "internalRecursion", [maxIterations, (currentIteration + 1), (accumulatedResult :+ currentIteration)], nil) |
---|
27 | 27 | | if ((z == z)) |
---|
28 | 28 | | then nil |
---|
29 | 29 | | else throw("Strict value is not equal to itself.") |
---|
30 | 30 | | } |
---|
31 | | - | else $Tuple2(nil, accumulatedResult) |
---|
| 31 | + | else $Tuple2(nil, 100) |
---|
32 | 32 | | |
---|
33 | 33 | | |
---|
34 | 34 | | @Verifier(tx) |
---|
35 | 35 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
36 | 36 | | |
---|