tx · 4Ehwndn77HobPywPzZeZtvmjeWfN1mH1Esvwd1HoTUMB
3MzCxx3HQhveT7EPtxKiavzeG5NaWfdWaqG: -0.00100000 Waves
2022.09.14 10:38 [2228472] smart account 3MzCxx3HQhveT7EPtxKiavzeG5NaWfdWaqG > SELF 0.00000000 Waves
{
"type": 13,
"id": "4Ehwndn77HobPywPzZeZtvmjeWfN1mH1Esvwd1HoTUMB",
"fee": 100000,
"feeAssetId": null,
"timestamp": 1663141166607,
"version": 2,
"chainId": 84,
"sender": "3MzCxx3HQhveT7EPtxKiavzeG5NaWfdWaqG",
"senderPublicKey": "GsZLD13DqBHEqBVXCDjp7KqkLz78GSfeRJR8LFQnSFzu",
"proofs": [
"2ryLsZUARTq3xGkh9c5BDQEgzsR2ZMhW7moTAGCmEtfMGreJGXgoLByvVbMtomK65C2VFUbw3JWgAbNcWcxVdeyi"
],
"script": "base64:AAIFAAAAAAAAAAkIAhIFCgMICAEAAAABAQAAAAdmaW5kSWR4AAAAAgAAAANzcmMAAAAGdGFyZ2V0BAAAAAt0YXJnZXRTdGFydAkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEswAAAAIFAAAAA3NyYwUAAAAGdGFyZ2V0CQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAABZ0aGVyZSBpcyBubyBzdWJzdHJpbmcgBQAAAAZ0YXJnZXQCAAAABCBpbiAFAAAAA3NyYwMJAABmAAAAAgUAAAALdGFyZ2V0U3RhcnQAAAAAAAAAAAAEAAAABGxlZnQJAAEvAAAAAgUAAAADc3JjBQAAAAt0YXJnZXRTdGFydAkAAZAAAAABCQAEtQAAAAIFAAAABGxlZnQCAAAAAV8AAAAAAAAAAAAAAAABAAAAAWkBAAAAC3Rlc3RGaW5kSWR4AAAAAwAAAANzcmMAAAAGdGFyZ2V0AAAAC2V4cGVjdGVkSWR4BAAAAANpZHgJAQAAAAdmaW5kSWR4AAAAAgUAAAADc3JjBQAAAAZ0YXJnZXQEAAAABnN0YXR1cwMJAAAAAAAAAgUAAAADaWR4BQAAAAtleHBlY3RlZElkeAkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAJc3VjY2VzczogCQABpAAAAAEFAAAAA2lkeAIAAAADID0gCQABpAAAAAEFAAAAC2V4cGVjdGVkSWR4CQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAZmYWlsOiAJAAGkAAAAAQUAAAADaWR4AgAAAAQgIT0gCQABpAAAAAEFAAAAC2V4cGVjdGVkSWR4CQAFFAAAAAIFAAAAA25pbAUAAAAGc3RhdHVzAAAAABsjkaI=",
"height": 2228472,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 2phCXR1eqtk6LoLrhdHwKpVFMpZM5XbJP7vYGBaLRfNj
Next: 89oVeYbKjPA3UKd3uNuz8TAncXiwpcS9Wd3DjrMwiHsj
Diff:
Old | New | | Differences |
---|
16 | 16 | | func testFindIdx (src,target,expectedIdx) = { |
---|
17 | 17 | | let idx = findIdx(src, target) |
---|
18 | 18 | | let status = if ((idx == expectedIdx)) |
---|
19 | | - | then "success" |
---|
20 | | - | else "fail" |
---|
| 19 | + | then ((("success: " + toString(idx)) + " = ") + toString(expectedIdx)) |
---|
| 20 | + | else ((("fail: " + toString(idx)) + " != ") + toString(expectedIdx)) |
---|
21 | 21 | | $Tuple2(nil, status) |
---|
22 | 22 | | } |
---|
23 | 23 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func findIdx (src,target) = { |
---|
5 | 5 | | let targetStart = valueOrErrorMessage(indexOf(src, target), ((("there is no substring " + target) + " in ") + src)) |
---|
6 | 6 | | if ((targetStart > 0)) |
---|
7 | 7 | | then { |
---|
8 | 8 | | let left = take(src, targetStart) |
---|
9 | 9 | | size(split(left, "_")) |
---|
10 | 10 | | } |
---|
11 | 11 | | else 0 |
---|
12 | 12 | | } |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | @Callable(i) |
---|
16 | 16 | | func testFindIdx (src,target,expectedIdx) = { |
---|
17 | 17 | | let idx = findIdx(src, target) |
---|
18 | 18 | | let status = if ((idx == expectedIdx)) |
---|
19 | | - | then "success" |
---|
20 | | - | else "fail" |
---|
| 19 | + | then ((("success: " + toString(idx)) + " = ") + toString(expectedIdx)) |
---|
| 20 | + | else ((("fail: " + toString(idx)) + " != ") + toString(expectedIdx)) |
---|
21 | 21 | | $Tuple2(nil, status) |
---|
22 | 22 | | } |
---|
23 | 23 | | |
---|
24 | 24 | | |
---|