tx · H4hA54hZSfCWJyguani9v2dCrxypdME1RfWPwsgJ8Kqz
3MxN9yafHqAds69z7NeaYgeXjeDUdzJya1M: -0.01000000 Waves
2023.03.22 07:55 [2500773] smart account 3MxN9yafHqAds69z7NeaYgeXjeDUdzJya1M > SELF 0.00000000 Waves
{
"type": 13,
"id": "H4hA54hZSfCWJyguani9v2dCrxypdME1RfWPwsgJ8Kqz",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1679460935127,
"version": 2,
"chainId": 84,
"sender": "3MxN9yafHqAds69z7NeaYgeXjeDUdzJya1M",
"senderPublicKey": "CPR2z4Q8kdV2M4JHaFVVTRzdEWPUA1Whqtw6SWE8kyU9",
"proofs": [
"4X86VnfggVPGiPhKQpkkboW3YJXHubWaL6WM7XwwZb2x7jzFbJkLQZhn2m21rait75zVuFwig9rmtw79SfAspR1G"
],
"script": "base64:BgILCAISABIFCgMBAREAAgFpAQtleGFtcGxlQ2FsbAAEAXoJAP0HBAUEdGhpcwIRaW50ZXJuYWxSZWN1cnNpb24JAMwIAgAKCQDMCAIAAAkAzAgCBQNuaWwFA25pbAUDbmlsAwkAAAIFAXoFAXoFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgFpARFpbnRlcm5hbFJlY3Vyc2lvbgMNbWF4SXRlcmF0aW9ucxBjdXJyZW50SXRlcmF0aW9uEWFjY3VtdWxhdGVkUmVzdWx0AwkBAiE9AggFAWkGY2FsbGVyBQR0aGlzCQACAQIjT25seSBjYW4gYmUgY2FsbGVkIGJ5IHRoaXMgY29udHJhY3QDCQBmAgUNbWF4SXRlcmF0aW9ucwUQY3VycmVudEl0ZXJhdGlvbgQBegkA/QcEBQR0aGlzAhFpbnRlcm5hbFJlY3Vyc2lvbgkAzAgCBQ1tYXhJdGVyYXRpb25zCQDMCAIJAGQCBRBjdXJyZW50SXRlcmF0aW9uAAEJAMwIAgkAzQgCBRFhY2N1bXVsYXRlZFJlc3VsdAUQY3VycmVudEl0ZXJhdGlvbgUDbmlsBQNuaWwDCQAAAgUBegUBegkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICAhNjdXJyZW50X2l0ZXJhdGlvbl9fCQCkAwEFEGN1cnJlbnRJdGVyYXRpb24FEGN1cnJlbnRJdGVyYXRpb24FA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAzAgCCQEMSW50ZWdlckVudHJ5AgIJTGlzdCBzaXplCQCQAwEFEWFjY3VtdWxhdGVkUmVzdWx0BQNuaWwBAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5qy1U5A==",
"height": 2500773,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 7TQPYUwpdLSJ461qKb31nXcBsdyUm6xzh7MT5vGtUmSn
Next: GrYa3CKUgQnveMsuV3qVV1uqcE9adTZna8wGHqSVGGpZ
Diff:
Old | New | | Differences |
---|
20 | 20 | | then { |
---|
21 | 21 | | let z = reentrantInvoke(this, "internalRecursion", [maxIterations, (currentIteration + 1), (accumulatedResult :+ currentIteration)], nil) |
---|
22 | 22 | | if ((z == z)) |
---|
23 | | - | then nil |
---|
| 23 | + | then [IntegerEntry(("current_iteration__" + toString(currentIteration)), currentIteration)] |
---|
24 | 24 | | else throw("Strict value is not equal to itself.") |
---|
25 | 25 | | } |
---|
26 | 26 | | else [IntegerEntry("List size", size(accumulatedResult))] |
---|
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 nil |
---|
11 | 11 | | else throw("Strict value is not equal to itself.") |
---|
12 | 12 | | } |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | |
---|
16 | 16 | | @Callable(i) |
---|
17 | 17 | | func internalRecursion (maxIterations,currentIteration,accumulatedResult) = if ((i.caller != this)) |
---|
18 | 18 | | then throw("Only can be called by this contract") |
---|
19 | 19 | | else if ((maxIterations > currentIteration)) |
---|
20 | 20 | | then { |
---|
21 | 21 | | let z = reentrantInvoke(this, "internalRecursion", [maxIterations, (currentIteration + 1), (accumulatedResult :+ currentIteration)], nil) |
---|
22 | 22 | | if ((z == z)) |
---|
23 | | - | then nil |
---|
| 23 | + | then [IntegerEntry(("current_iteration__" + toString(currentIteration)), currentIteration)] |
---|
24 | 24 | | else throw("Strict value is not equal to itself.") |
---|
25 | 25 | | } |
---|
26 | 26 | | else [IntegerEntry("List size", size(accumulatedResult))] |
---|
27 | 27 | | |
---|
28 | 28 | | |
---|
29 | 29 | | @Verifier(tx) |
---|
30 | 30 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
31 | 31 | | |
---|