tx · 6Ubaadk2KQ7i2r5xJSNMB1EH27U7U3EfXpzh7W5hYx7o

3MzCxx3HQhveT7EPtxKiavzeG5NaWfdWaqG:  -0.00100000 Waves

2022.09.14 10:41 [2228476] smart account 3MzCxx3HQhveT7EPtxKiavzeG5NaWfdWaqG > SELF 0.00000000 Waves

{ "type": 13, "id": "6Ubaadk2KQ7i2r5xJSNMB1EH27U7U3EfXpzh7W5hYx7o", "fee": 100000, "feeAssetId": null, "timestamp": 1663141351580, "version": 2, "chainId": 84, "sender": "3MzCxx3HQhveT7EPtxKiavzeG5NaWfdWaqG", "senderPublicKey": "GsZLD13DqBHEqBVXCDjp7KqkLz78GSfeRJR8LFQnSFzu", "proofs": [ "3ACWtghmMvRPHFb4dfciv7d9asEafkoHS8LAuvtdySynebpZtanbCjUb8eV174k6ivvaDCppNV9dKFXwFZ3ET5BS" ], "script": "base64:AAIFAAAAAAAAAAkIAhIFCgMICAEAAAABAQAAAAdmaW5kSWR4AAAAAgAAAANzcmMAAAAGdGFyZ2V0BAAAAAt0YXJnZXRTdGFydAkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEswAAAAIFAAAAA3NyYwUAAAAGdGFyZ2V0CQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAABZ0aGVyZSBpcyBubyBzdWJzdHJpbmcgBQAAAAZ0YXJnZXQCAAAABCBpbiAFAAAAA3NyYwMJAABmAAAAAgUAAAALdGFyZ2V0U3RhcnQAAAAAAAAAAAAEAAAABGxlZnQJAAEvAAAAAgUAAAADc3JjBQAAAAt0YXJnZXRTdGFydAkAAAIAAAABBQAAAARsZWZ0AAAAAAAAAAAAAAAAAQAAAAFpAQAAAAt0ZXN0RmluZElkeAAAAAMAAAADc3JjAAAABnRhcmdldAAAAAtleHBlY3RlZElkeAQAAAADaWR4CQEAAAAHZmluZElkeAAAAAIFAAAAA3NyYwUAAAAGdGFyZ2V0BAAAAAZzdGF0dXMDCQAAAAAAAAIFAAAAA2lkeAUAAAALZXhwZWN0ZWRJZHgJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAACXN1Y2Nlc3M6IAkAAaQAAAABBQAAAANpZHgCAAAAAyA9IAkAAaQAAAABBQAAAAtleHBlY3RlZElkeAkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAGZmFpbDogCQABpAAAAAEFAAAAA2lkeAIAAAAEICE9IAkAAaQAAAABBQAAAAtleHBlY3RlZElkeAkABRQAAAACBQAAAANuaWwFAAAABnN0YXR1cwAAAAA6+ngu", "height": 2228476, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 89oVeYbKjPA3UKd3uNuz8TAncXiwpcS9Wd3DjrMwiHsj Next: HemxdgJCqVhv2b2vcJXZT9mtkeoP73m22YzFNpsirEfu Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func findIdx (src,target) = {
55 let targetStart = valueOrErrorMessage(indexOf(src, target), ((("there is no substring " + target) + " in ") + src))
66 if ((targetStart > 0))
77 then {
88 let left = take(src, targetStart)
99 throw(left)
1010 }
1111 else 0
1212 }
1313
1414
1515 @Callable(i)
1616 func testFindIdx (src,target,expectedIdx) = {
1717 let idx = findIdx(src, target)
1818 let status = if ((idx == expectedIdx))
1919 then ((("success: " + toString(idx)) + " = ") + toString(expectedIdx))
2020 else ((("fail: " + toString(idx)) + " != ") + toString(expectedIdx))
2121 $Tuple2(nil, status)
2222 }
2323
2424

github/deemru/w8io/026f985 
28.43 ms