tx · Am7vtFZ3czuhVuufhPS3aapWf7jn2tMBmPNq6KBmLtFs

3MzFh27duAGxnMitPkGFPWCDHgyYZE3PUCH:  -0.01400000 Waves

2019.12.01 15:13 [789550] smart account 3MzFh27duAGxnMitPkGFPWCDHgyYZE3PUCH > SELF 0.00000000 Waves

{ "type": 13, "id": "Am7vtFZ3czuhVuufhPS3aapWf7jn2tMBmPNq6KBmLtFs", "fee": 1400000, "feeAssetId": null, "timestamp": 1575202502812, "version": 1, "sender": "3MzFh27duAGxnMitPkGFPWCDHgyYZE3PUCH", "senderPublicKey": "GrgrmWgq1Ts1ncMDtq8xzKMBnvc5xPxwkcsK9EN5RskZ", "proofs": [ "4RAzFYJfHCa74rPfEeptTym3r7EHN5mQFvDTunpQWVvEXuhCyPjPXSFQCoAajhcsETrfcEapuJnFgtwPqctoCi7m" ], "script": "base64:AAIDAAAAAAAAAAkIARIFCgMICAgAAAADAQAAAAhnZXRWYWx1ZQAAAAIAAAAEanNvbgAAAANrZXkDCQEAAAACIT0AAAACBQAAAANrZXkCAAAACmZpcnN0X25hbWUJAAACAAAAAQIAAAAfWW91IGNhbm5vdCB1cGRhdGUgdGhpcyBwcm9wZXJ0eQQAAAAIa2V5SW5kZXgJAQAAAAV2YWx1ZQAAAAEJAASzAAAAAgUAAAAEanNvbgkAASwAAAACCQABLAAAAAICAAAAASIFAAAAA2tleQIAAAACIjoEAAAABGRhdGEJAAEwAAAAAgUAAAAEanNvbgkAAGQAAAACCQAAZAAAAAIFAAAACGtleUluZGV4CQABMQAAAAEFAAAAA2tleQAAAAAAAAAAAwUAAAAEZGF0YQEAAAAQZ2V0SnNvbkJlZm9yZUtleQAAAAIAAAAEanNvbgAAAANrZXkDCQEAAAACIT0AAAACBQAAAANrZXkCAAAACmZpcnN0X25hbWUJAAACAAAAAQIAAAAfWW91IGNhbm5vdCB1cGRhdGUgdGhpcyBwcm9wZXJ0eQQAAAAIa2V5SW5kZXgJAQAAAAV2YWx1ZQAAAAEJAASzAAAA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0ZXJKc29uCQEAAAAPZ2V0SnNvbkFmdGVyS2V5AAAAAwUAAAAJdmFsdWVKU09OBQAAAANrZXkJAAExAAAAAQkBAAAACGdldFZhbHVlAAAAAgUAAAAJdmFsdWVKU09OBQAAAANrZXkEAAAAC3ZhbHVlSW5Kc29uCQEAAAAIZ2V0VmFsdWUAAAACBQAAAAl2YWx1ZUpTT04FAAAAA2tleQMJAAAAAAAAAgUAAAALdmFsdWVJbkpzb24FAAAACG5ld1ZhbHVlCQAAAgAAAAECAAAAGHNhbWUgdmFsdWUgc28gbm8gY2hhbmdlcwkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAHanNvbktleQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAA92YWx1ZUJlZm9yZUpzb24CAAAAASIFAAAACG5ld1ZhbHVlAgAAAAEiBQAAAA52YWx1ZUFmdGVySnNvbgUAAAADbmlsAAAAAAk3sTc=", "chainId": 84, "height": 789550, "spentComplexity": 0 } View: original | compacted Prev: FVFYycKTKGy9mPknvnoiumLpxaoEq8vtXcFAQNKRdoad Next: 7ZTTgsACCTpLzeE8n5i1yj8TE3iVuFNLq7NzPZd1afkk Diff:
OldNewDifferences
2828 }
2929
3030
31-func i (b) = take(drop(b, 1), value(indexOf(drop(b, 1), "\"")))
32-
33-
34-@Callable(j)
35-func testUpdateJsonKeyValue (k,c,l) = {
36- let m = {
37- let n = getString(this, k)
38- if ($isInstanceOf(n, "String"))
31+@Callable(i)
32+func testUpdateJsonKeyValue (j,c,k) = {
33+ let l = {
34+ let m = getString(this, j)
35+ if ($isInstanceOf(m, "String"))
3936 then {
40- let o = n
41- o
37+ let n = m
38+ n
4239 }
4340 else throw("The key doesn't exist")
4441 }
45- let p = f(m, c)
46- let q = g(m, c, size(i(a(m, c))))
47- let r = i(a(m, c))
48- if ((r == l))
42+ let o = f(l, c)
43+ let p = g(l, c, size(a(l, c)))
44+ let q = a(l, c)
45+ if ((q == k))
4946 then throw("same value so no changes")
50- else WriteSet([DataEntry(k, ((((p + "\"") + l) + "\"") + q))])
47+ else WriteSet([DataEntry(j, ((((o + "\"") + k) + "\"") + p))])
5148 }
5249
5350
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b,c) = if ((c != "first_name"))
55 then throw("You cannot update this property")
66 else {
77 let d = value(indexOf(b, (("\"" + c) + "\":")))
88 let e = drop(b, ((d + size(c)) + 3))
99 e
1010 }
1111
1212
1313 func f (b,c) = if ((c != "first_name"))
1414 then throw("You cannot update this property")
1515 else {
1616 let d = value(indexOf(b, (("\"" + c) + "\":")))
1717 let e = take(b, ((d + size(c)) + 3))
1818 e
1919 }
2020
2121
2222 func g (b,c,h) = if ((c != "first_name"))
2323 then throw("You cannot update this property")
2424 else {
2525 let d = value(indexOf(b, (("\"" + c) + "\":")))
2626 let e = takeRight(b, (size(b) - ((((d + size(c)) + 3) + h) + 2)))
2727 e
2828 }
2929
3030
31-func i (b) = take(drop(b, 1), value(indexOf(drop(b, 1), "\"")))
32-
33-
34-@Callable(j)
35-func testUpdateJsonKeyValue (k,c,l) = {
36- let m = {
37- let n = getString(this, k)
38- if ($isInstanceOf(n, "String"))
31+@Callable(i)
32+func testUpdateJsonKeyValue (j,c,k) = {
33+ let l = {
34+ let m = getString(this, j)
35+ if ($isInstanceOf(m, "String"))
3936 then {
40- let o = n
41- o
37+ let n = m
38+ n
4239 }
4340 else throw("The key doesn't exist")
4441 }
45- let p = f(m, c)
46- let q = g(m, c, size(i(a(m, c))))
47- let r = i(a(m, c))
48- if ((r == l))
42+ let o = f(l, c)
43+ let p = g(l, c, size(a(l, c)))
44+ let q = a(l, c)
45+ if ((q == k))
4946 then throw("same value so no changes")
50- else WriteSet([DataEntry(k, ((((p + "\"") + l) + "\"") + q))])
47+ else WriteSet([DataEntry(j, ((((o + "\"") + k) + "\"") + p))])
5148 }
5249
5350

github/deemru/w8io/169f3d6 
36.09 ms