tx · 64yUT66D5oZVm4ZD4CT9jMNdpZ2HMLRqhSeAH7YmMuGt

3MshLEZwkjz17HtsouWjFBXrXkPBVBHD7gm:  -0.00100000 Waves

2022.07.05 10:07 [2126054] smart account 3MshLEZwkjz17HtsouWjFBXrXkPBVBHD7gm > SELF 0.00000000 Waves

{ "type": 13, "id": "64yUT66D5oZVm4ZD4CT9jMNdpZ2HMLRqhSeAH7YmMuGt", "fee": 100000, "feeAssetId": null, "timestamp": 1657004894297, "version": 2, "chainId": 84, "sender": "3MshLEZwkjz17HtsouWjFBXrXkPBVBHD7gm", "senderPublicKey": "CAYySFNuYSLU5jGWNBottZuyHbvGh2JxucGYSXF3aEi8", "proofs": [ "66RnnRPQvyAumQmBVR1pUwXk5Uo2DydJPWHpFSJNMj6gjgrjH1SvZBrTqmoWsWVjwwtwwyKagurBTRvoCvQ9hbDd" ], "script": "base64:AAIFAAAAAAAAAA8IAhIAEgQKAgEIEgMKAQEAAAAHAAAAAAlzZXBhcmF0b3ICAAAAAV8AAAAAD3NlY29uZFNlcGFyYXRvcgIAAAABLwAAAAAJY3VzdG9tS2V5AgAAAAABAAAAC2dlbmVyYXRlS2V5AAAAAgAAAAVpbmRleAAAAARoYXNoCQAEuQAAAAIJAARMAAAAAgUAAAAEaGFzaAkABEwAAAACBQAAAAVpbmRleAUAAAADbmlsBQAAAAlzZXBhcmF0b3IBAAAAD3NldE1hcHBpbmdWYWx1ZQAAAAIAAAADa2V5AAAABXZhbHVlCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAANrZXkFAAAABXZhbHVlAQAAAA1nZXRWYWx1ZUJ5S2V5AAAAAQAAAANrZXkJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABHRoaXMFAAAAA2tleQEAAAAFZHF3ZWQAAAAACQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAQAAAAtnZW5lcmF0ZUtleQAAAAICAAAAATEJAAQlAAAAAQUAAAAEdGhpcwUAAAAPc2Vjb25kU2VwYXJhdG9yCQEAAAALZ2VuZXJhdGVLZXkAAAACAgAAAAEyCQAEJQAAAAEFAAAABHRoaXMFAAAAD3NlY29uZFNlcGFyYXRvcgkBAAAAC2dlbmVyYXRlS2V5AAAAAgIAAAABMwkABCUAAAABBQAAAAR0aGlzAAAAAwAAAAFpAQAAAAdpbml0TWFwAAAAAAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAAEyCQEAAAAFZHF3ZWQAAAAABQAAAANuaWwAAAABaQEAAAANc2V0VmFsdWVJbk1hcAAAAAIAAAAFaW5kZXgAAAAFdmFsdWUJAARMAAAAAgkBAAAAD3NldE1hcHBpbmdWYWx1ZQAAAAIJAAGRAAAAAgkABLUAAAACBQAAAAljdXN0b21LZXkFAAAAD3NlY29uZFNlcGFyYXRvcgUAAAAFaW5kZXgFAAAABXZhbHVlBQAAAANuaWwAAAABaQEAAAAGZ2V0TWFwAAAAAQAAAAVpbmRleAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAAExCQEAAAANZ2V0VmFsdWVCeUtleQAAAAEJAAGRAAAAAgkABLUAAAACBQAAAAljdXN0b21LZXkFAAAACXNlcGFyYXRvcgUAAAAFaW5kZXgFAAAAA25pbAAAAAD/bAPM", "height": 2126054, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CCHfQpdddzCbD3J4c9JwPokqEhy22dwsb7jk2gnqDU62 Next: 35pNrFYp5b7HSh4JBXKeWNqGC7bf7jnCYakzTKrY4KCa Diff:
OldNewDifferences
2525
2626
2727 @Callable(i)
28-func setValueInMap (index,value) = [setMappingValue(split(customKey, (separator + toString(index)))[index], value)]
28+func setValueInMap (index,value) = [setMappingValue(split(customKey, secondSeparator)[index], value)]
2929
3030
3131
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let separator = "_"
55
66 let secondSeparator = "/"
77
88 let customKey = ""
99
1010 func generateKey (index,hash) = makeString([hash, index], separator)
1111
1212
1313 func setMappingValue (key,value) = StringEntry(key, value)
1414
1515
1616 func getValueByKey (key) = getStringValue(this, key)
1717
1818
1919 func dqwed () = ((((generateKey("1", toString(this)) + secondSeparator) + generateKey("2", toString(this))) + secondSeparator) + generateKey("3", toString(this)))
2020
2121
2222 @Callable(i)
2323 func initMap () = [StringEntry("2", dqwed())]
2424
2525
2626
2727 @Callable(i)
28-func setValueInMap (index,value) = [setMappingValue(split(customKey, (separator + toString(index)))[index], value)]
28+func setValueInMap (index,value) = [setMappingValue(split(customKey, secondSeparator)[index], value)]
2929
3030
3131
3232 @Callable(i)
3333 func getMap (index) = [StringEntry("1", getValueByKey(split(customKey, separator)[index]))]
3434
3535

github/deemru/w8io/169f3d6 
45.56 ms