tx · 88goykMfZkvVJ6peNwC8jPaQyuHKzcEpHYLqw39eMimj

3Moz6HJhucpFh4V3VScXhd9efei4Curytfj:  -0.01000000 Waves

2023.11.23 19:55 [2856297] smart account 3Moz6HJhucpFh4V3VScXhd9efei4Curytfj > SELF 0.00000000 Waves

{ "type": 13, "id": "88goykMfZkvVJ6peNwC8jPaQyuHKzcEpHYLqw39eMimj", "fee": 1000000, "feeAssetId": null, "timestamp": 1700758534248, "version": 2, "chainId": 84, "sender": "3Moz6HJhucpFh4V3VScXhd9efei4Curytfj", "senderPublicKey": "Ec1VLg3r1E7mwHmaNidmoKrFAUJ55UVJFq3J1YKRy5Zm", "proofs": [ "2wv367NXJ74ACW6EZ1wRKquzyNxMZzPpRGi3KFp9TDwmD9BYZackoAYg2cFoVpu51CzWZPAPwYutcpT1nADx1thY" ], "script": "base64:BgIECAISAAMABEpzb24CJnsndGVzdDEnOiAndmFsdWUxJywgJ3Rlc3QyJzogJ3ZhbHVlMid9AQtyZW1vdmVNYXJrcwELbWFya3NTdHJpbmcEAWEJALACAgULbWFya3NTdHJpbmcAAQQBYgkAswICBQFhAAEFAWIBCXBhcnNlSnNvbgEEanNvbgQMbW9kaWZpZWRKc29uCQCwAgIFBGpzb24AAQQNbW9kaWZpZWRKc29uMgkAswICBQxtb2RpZmllZEpzb24AAQQGc3BsaXQxCQC1CQIFDW1vZGlmaWVkSnNvbjICASwECWtleVZhbHVlMQkAtQkCCQCRAwIFBnNwbGl0MQAAAgE6BARrZXkxCQELcmVtb3ZlTWFya3MBCQCRAwIFCWtleVZhbHVlMQAABAZ2YWx1ZTEJAQtyZW1vdmVNYXJrcwEJAJEDAgUJa2V5VmFsdWUxAAEECWtleVZhbHVlMgkAtQkCCQCRAwIFBnNwbGl0MQABAgE6BARrZXkyCQELcmVtb3ZlTWFya3MBCQCRAwIFCWtleVZhbHVlMgAABAZ2YWx1ZTIJAQtyZW1vdmVNYXJrcwEJAJEDAgUJa2V5VmFsdWUyAAEJAJQKAgUGdmFsdWUxBQZ2YWx1ZTIBAWkBBGNhbGwABARkYXBwCQDZBAECIzNONzNkY3YyamtUb2JkUTlUUkxTWDRQdHZxSGJqc2lLeGlQBAZ2YWx1ZXMJAQlwYXJzZUpzb24BBQRKc29uBAF6CQD8BwQJAQdBZGRyZXNzAQUEZGFwcAIEY2FsbAUDbmlsBQNuaWwDCQECIT0CBQF6BQF6CQACAQITU29tZXRoaW5nIHdlbnQgd3JvbgkAzAgCCQELU3RyaW5nRW50cnkCAgVUZXN0MwIFVGVzdDQJAMwIAgkBC1N0cmluZ0VudHJ5AgIFVGVzdDQCBVRlc3Q1CQDMCAIJAQtTdHJpbmdFbnRyeQICBHZhbDEIBQZ2YWx1ZXMCXzEJAMwIAgkBC1N0cmluZ0VudHJ5AgIFVGVzdDQIBQZ2YWx1ZXMCXzIFA25pbAECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXn5XoJV", "height": 2856297, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EPnGs6itYQfqq8bkYaNkFJTRpnaVerVUtmSLuns7qU2C Next: 9LTzksHGKhREzZ9YHHzFksMW8t6JTqutH6hxSzHnKvV Diff:
OldNewDifferences
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let Json = "{'test1': 'value1', 'test2': 'value2'}"
5+
6+func removeMarks (marksString) = {
7+ let a = drop(marksString, 1)
8+ let b = dropRight(a, 1)
9+ b
10+ }
11+
512
613 func parseJson (json) = {
714 let modifiedJson = drop(json, 1)
815 let modifiedJson2 = dropRight(modifiedJson, 1)
916 let split1 = split(modifiedJson2, ",")
1017 let keyValue1 = split(split1[0], ":")
11- let key1 = keyValue1[0]
12- let value1 = keyValue1[1]
18+ let key1 = removeMarks(keyValue1[0])
19+ let value1 = removeMarks(keyValue1[1])
1320 let keyValue2 = split(split1[1], ":")
14- let key2 = keyValue2[0]
15- let value2 = keyValue2[1]
21+ let key2 = removeMarks(keyValue2[0])
22+ let value2 = removeMarks(keyValue2[1])
1623 $Tuple2(value1, value2)
1724 }
1825
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let Json = "{'test1': 'value1', 'test2': 'value2'}"
5+
6+func removeMarks (marksString) = {
7+ let a = drop(marksString, 1)
8+ let b = dropRight(a, 1)
9+ b
10+ }
11+
512
613 func parseJson (json) = {
714 let modifiedJson = drop(json, 1)
815 let modifiedJson2 = dropRight(modifiedJson, 1)
916 let split1 = split(modifiedJson2, ",")
1017 let keyValue1 = split(split1[0], ":")
11- let key1 = keyValue1[0]
12- let value1 = keyValue1[1]
18+ let key1 = removeMarks(keyValue1[0])
19+ let value1 = removeMarks(keyValue1[1])
1320 let keyValue2 = split(split1[1], ":")
14- let key2 = keyValue2[0]
15- let value2 = keyValue2[1]
21+ let key2 = removeMarks(keyValue2[0])
22+ let value2 = removeMarks(keyValue2[1])
1623 $Tuple2(value1, value2)
1724 }
1825
1926
2027 @Callable(i)
2128 func call () = {
2229 let dapp = fromBase58String("3N73dcv2jkTobdQ9TRLSX4PtvqHbjsiKxiP")
2330 let values = parseJson(Json)
2431 let z = invoke(Address(dapp), "call", nil, nil)
2532 if ((z != z))
2633 then throw("Something went wron")
2734 else [StringEntry("Test3", "Test4"), StringEntry("Test4", "Test5"), StringEntry("val1", values._1), StringEntry("Test4", values._2)]
2835 }
2936
3037
3138 @Verifier(tx)
3239 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
3340

github/deemru/w8io/169f3d6 
30.32 ms