tx · 7TQPYUwpdLSJ461qKb31nXcBsdyUm6xzh7MT5vGtUmSn
3MxN9yafHqAds69z7NeaYgeXjeDUdzJya1M: -0.01000000 Waves
2023.03.21 21:39 [2500146] smart account 3MxN9yafHqAds69z7NeaYgeXjeDUdzJya1M > SELF 0.00000000 Waves
{
"type": 13,
"id": "7TQPYUwpdLSJ461qKb31nXcBsdyUm6xzh7MT5vGtUmSn",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1679423994574,
"version": 2,
"chainId": 84,
"sender": "3MxN9yafHqAds69z7NeaYgeXjeDUdzJya1M",
"senderPublicKey": "CPR2z4Q8kdV2M4JHaFVVTRzdEWPUA1Whqtw6SWE8kyU9",
"proofs": [
"4vLwXbaAuuhKRjaPbvgauor1SFBkYMHkXUPRLHmTYYyDVXvk23wDCuchdwKEYVRPkhTE3SsWifuHforypfFtM2Y"
],
"script": "base64:BgILCAISABIFCgMBAREAAgFpAQtleGFtcGxlQ2FsbAAEAXoJAP0HBAUEdGhpcwIRaW50ZXJuYWxSZWN1cnNpb24JAMwIAgAKCQDMCAIAAAkAzAgCBQNuaWwFA25pbAUDbmlsAwkAAAIFAXoFAXoFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgFpARFpbnRlcm5hbFJlY3Vyc2lvbgMNbWF4SXRlcmF0aW9ucxBjdXJyZW50SXRlcmF0aW9uEWFjY3VtdWxhdGVkUmVzdWx0AwkBAiE9AggFAWkGY2FsbGVyBQR0aGlzCQACAQIjT25seSBjYW4gYmUgY2FsbGVkIGJ5IHRoaXMgY29udHJhY3QDCQBmAgUNbWF4SXRlcmF0aW9ucwUQY3VycmVudEl0ZXJhdGlvbgQBegkA/QcEBQR0aGlzAhFpbnRlcm5hbFJlY3Vyc2lvbgkAzAgCBQ1tYXhJdGVyYXRpb25zCQDMCAIJAGQCBRBjdXJyZW50SXRlcmF0aW9uAAEJAMwIAgkAzQgCBRFhY2N1bXVsYXRlZFJlc3VsdAUQY3VycmVudEl0ZXJhdGlvbgUDbmlsBQNuaWwDCQAAAgUBegUBegUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQDMCAIJAQxJbnRlZ2VyRW50cnkCAglMaXN0IHNpemUJAJADAQURYWNjdW11bGF0ZWRSZXN1bHQFA25pbAECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXkoJfh7",
"height": 2500146,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: F3Vn7yYoGiwzPoiP8HyCWtbTB9hwqKL2nwK41MYEBH7X
Next: H4hA54hZSfCWJyguani9v2dCrxypdME1RfWPwsgJ8Kqz
Diff:
Old | New | | Differences |
---|
7 | 7 | | func exampleCall () = { |
---|
8 | 8 | | let b = reentrantInvoke(this, "internalRecursion", [10, 0, nil], nil) |
---|
9 | 9 | | if ((b == b)) |
---|
10 | | - | then { |
---|
11 | | - | let c = b |
---|
12 | | - | if ($isInstanceOf(c, "Int")) |
---|
13 | | - | then { |
---|
14 | | - | let d = c |
---|
15 | | - | [IntegerEntry("List size", d)] |
---|
16 | | - | } |
---|
17 | | - | else throw("Wrong internal function result") |
---|
18 | | - | } |
---|
| 10 | + | then nil |
---|
19 | 11 | | else throw("Strict value is not equal to itself.") |
---|
20 | 12 | | } |
---|
21 | 13 | | |
---|
22 | 14 | | |
---|
23 | 15 | | |
---|
24 | 16 | | @Callable(a) |
---|
25 | | - | func internalRecursion (e,f,g) = if ((a.caller != this)) |
---|
| 17 | + | func internalRecursion (c,d,e) = if ((a.caller != this)) |
---|
26 | 18 | | then throw("Only can be called by this contract") |
---|
27 | | - | else if ((e > f)) |
---|
| 19 | + | else if ((c > d)) |
---|
28 | 20 | | then { |
---|
29 | | - | let b = reentrantInvoke(this, "internalRecursion", [e, (f + 1), (g :+ f)], nil) |
---|
| 21 | + | let b = reentrantInvoke(this, "internalRecursion", [c, (d + 1), (e :+ d)], nil) |
---|
30 | 22 | | if ((b == b)) |
---|
31 | 23 | | then nil |
---|
32 | 24 | | else throw("Strict value is not equal to itself.") |
---|
33 | 25 | | } |
---|
34 | | - | else $Tuple2(nil, 100) |
---|
| 26 | + | else [IntegerEntry("List size", size(e))] |
---|
35 | 27 | | |
---|
36 | 28 | | |
---|
37 | | - | @Verifier(h) |
---|
38 | | - | func i () = sigVerify(h.bodyBytes, h.proofs[0], h.senderPublicKey) |
---|
| 29 | + | @Verifier(f) |
---|
| 30 | + | func g () = sigVerify(f.bodyBytes, f.proofs[0], f.senderPublicKey) |
---|
39 | 31 | | |
---|
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(a) |
---|
7 | 7 | | func exampleCall () = { |
---|
8 | 8 | | let b = reentrantInvoke(this, "internalRecursion", [10, 0, nil], nil) |
---|
9 | 9 | | if ((b == b)) |
---|
10 | | - | then { |
---|
11 | | - | let c = b |
---|
12 | | - | if ($isInstanceOf(c, "Int")) |
---|
13 | | - | then { |
---|
14 | | - | let d = c |
---|
15 | | - | [IntegerEntry("List size", d)] |
---|
16 | | - | } |
---|
17 | | - | else throw("Wrong internal function result") |
---|
18 | | - | } |
---|
| 10 | + | then nil |
---|
19 | 11 | | else throw("Strict value is not equal to itself.") |
---|
20 | 12 | | } |
---|
21 | 13 | | |
---|
22 | 14 | | |
---|
23 | 15 | | |
---|
24 | 16 | | @Callable(a) |
---|
25 | | - | func internalRecursion (e,f,g) = if ((a.caller != this)) |
---|
| 17 | + | func internalRecursion (c,d,e) = if ((a.caller != this)) |
---|
26 | 18 | | then throw("Only can be called by this contract") |
---|
27 | | - | else if ((e > f)) |
---|
| 19 | + | else if ((c > d)) |
---|
28 | 20 | | then { |
---|
29 | | - | let b = reentrantInvoke(this, "internalRecursion", [e, (f + 1), (g :+ f)], nil) |
---|
| 21 | + | let b = reentrantInvoke(this, "internalRecursion", [c, (d + 1), (e :+ d)], nil) |
---|
30 | 22 | | if ((b == b)) |
---|
31 | 23 | | then nil |
---|
32 | 24 | | else throw("Strict value is not equal to itself.") |
---|
33 | 25 | | } |
---|
34 | | - | else $Tuple2(nil, 100) |
---|
| 26 | + | else [IntegerEntry("List size", size(e))] |
---|
35 | 27 | | |
---|
36 | 28 | | |
---|
37 | | - | @Verifier(h) |
---|
38 | | - | func i () = sigVerify(h.bodyBytes, h.proofs[0], h.senderPublicKey) |
---|
| 29 | + | @Verifier(f) |
---|
| 30 | + | func g () = sigVerify(f.bodyBytes, f.proofs[0], f.senderPublicKey) |
---|
39 | 31 | | |
---|