tx · 89oVeYbKjPA3UKd3uNuz8TAncXiwpcS9Wd3DjrMwiHsj
3MzCxx3HQhveT7EPtxKiavzeG5NaWfdWaqG: -0.00100000 Waves
2022.09.14 10:41 [2228476] smart account 3MzCxx3HQhveT7EPtxKiavzeG5NaWfdWaqG > SELF 0.00000000 Waves
{
"type": 13,
"id": "89oVeYbKjPA3UKd3uNuz8TAncXiwpcS9Wd3DjrMwiHsj",
"fee": 100000,
"feeAssetId": null,
"timestamp": 1663141338662,
"version": 2,
"chainId": 84,
"sender": "3MzCxx3HQhveT7EPtxKiavzeG5NaWfdWaqG",
"senderPublicKey": "GsZLD13DqBHEqBVXCDjp7KqkLz78GSfeRJR8LFQnSFzu",
"proofs": [
"5ys1vTNyRQC3qQoJT1fj329e7vLPunzpKkWWy5PPuvNQCHvGEE3jCKvEKQ6e1wyDrUB5nWyWEtruu425sgyiMwqg"
],
"script": "base64:AAIFAAAAAAAAAAkIAhIFCgMICAEAAAABAQAAAAdmaW5kSWR4AAAAAgAAAANzcmMAAAAGdGFyZ2V0BAAAAAt0YXJnZXRTdGFydAkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEswAAAAIFAAAAA3NyYwUAAAAGdGFyZ2V0CQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAABZ0aGVyZSBpcyBubyBzdWJzdHJpbmcgBQAAAAZ0YXJnZXQCAAAABCBpbiAFAAAAA3NyYwMJAABmAAAAAgUAAAALdGFyZ2V0U3RhcnQAAAAAAAAAAAAEAAAABGxlZnQJAAEvAAAAAgUAAAADc3JjBQAAAAt0YXJnZXRTdGFydAkAAAIAAAABBQAAAARsZWZ0AAAAAAAAAAAAAAAAAQAAAAFpAQAAAAt0ZXN0RmluZElkeAAAAAMAAAADc3JjAAAABnRhcmdldAAAAAtleHBlY3RlZElkeAQAAAADaWR4CQEAAAAHZmluZElkeAAAAAIFAAAAA3NyYwUAAAAGdGFyZ2V0BAAAAAZzdGF0dXMDCQAAAAAAAAIFAAAAA2lkeAUAAAALZXhwZWN0ZWRJZHgJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAACXN1Y2Nlc3M6IAkAAaQAAAABBQAAAANpZHgCAAAAAyA9IAkAAaQAAAABBQAAAAtleHBlY3RlZElkeAkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAGZmFpbDogCQABpAAAAAEFAAAAA2lkeAIAAAAEICE9IAkAAaQAAAABBQAAAAtleHBlY3RlZElkeAkABRQAAAACBQAAAANuaWwFAAAABnN0YXR1cwAAAAA6+ngu",
"height": 2228476,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 4Ehwndn77HobPywPzZeZtvmjeWfN1mH1Esvwd1HoTUMB
Next: 6Ubaadk2KQ7i2r5xJSNMB1EH27U7U3EfXpzh7W5hYx7o
Diff:
Old | New | | Differences |
---|
6 | 6 | | if ((d > 0)) |
---|
7 | 7 | | then { |
---|
8 | 8 | | let e = take(b, d) |
---|
9 | | - | size(split(e, "_")) |
---|
| 9 | + | throw(e) |
---|
10 | 10 | | } |
---|
11 | 11 | | else 0 |
---|
12 | 12 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func a (b,c) = { |
---|
5 | 5 | | let d = valueOrErrorMessage(indexOf(b, c), ((("there is no substring " + c) + " in ") + b)) |
---|
6 | 6 | | if ((d > 0)) |
---|
7 | 7 | | then { |
---|
8 | 8 | | let e = take(b, d) |
---|
9 | | - | size(split(e, "_")) |
---|
| 9 | + | throw(e) |
---|
10 | 10 | | } |
---|
11 | 11 | | else 0 |
---|
12 | 12 | | } |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | @Callable(f) |
---|
16 | 16 | | func testFindIdx (b,c,g) = { |
---|
17 | 17 | | let h = a(b, c) |
---|
18 | 18 | | let i = if ((h == g)) |
---|
19 | 19 | | then ((("success: " + toString(h)) + " = ") + toString(g)) |
---|
20 | 20 | | else ((("fail: " + toString(h)) + " != ") + toString(g)) |
---|
21 | 21 | | $Tuple2(nil, i) |
---|
22 | 22 | | } |
---|
23 | 23 | | |
---|
24 | 24 | | |
---|