tx · 52VCymbpXrJEMLL6qJ9tLnMAKfLCnzSbdworJYwbngmq

3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42:  -0.00200000 Waves

2022.06.29 17:56 [2117875] smart account 3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42 > SELF 0.00000000 Waves

{ "type": 13, "id": "52VCymbpXrJEMLL6qJ9tLnMAKfLCnzSbdworJYwbngmq", "fee": 200000, "feeAssetId": null, "timestamp": 1656514652187, "version": 2, "chainId": 84, "sender": "3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42", "senderPublicKey": "Bm8NA6cDADuRW1tDcjPsFdpsoUGwdxSD16MjDxtar9JB", "proofs": [ "2VCBsqm9evNaKNoAmsK17EPvdtc3F6jNgRFXSQj8nwS25BgN1Do1eicgukX6Cec1kUY3XcUra5GoKsA1Xgwq7NWL" ], "script": "base64:AAIFAAAAAAAAABAIAhIHCgUBAQEBARIDCgEBAAAABgAAAAAJc2VwYXJhdG9yAgAAAAEvAQAAABZnZXRBZGRyVG9JbnRNYXBwaW5nS2V5AAAAAgAAAAttYXBwaW5nTmFtZQAAAARhZGRyCQAEuQAAAAIJAARMAAAAAgUAAAALbWFwcGluZ05hbWUJAARMAAAAAgUAAAAEYWRkcgUAAAADbmlsBQAAAAlzZXBhcmF0b3IBAAAADmdlbmVyYXRlU3RydWN0AAAABQAAAAFhAAAAAWIAAAABYwAAAAFkAAAAAWUEAAAAA2FycgkABEwAAAACCQABpAAAAAEFAAAAAWEJAARMAAAAAgkAAaQAAAABBQAAAAFiCQAETAAAAAIJAAGkAAAAAQUAAAABYwkABEwAAAACCQABpAAAAAEFAAAAAWQJAARMAAAAAgkAAaQAAAABBQAAAAFlBQAAAANuaWwJAAS5AAAAAgUAAAADYXJyBQAAAAlzZXBhcmF0b3IBAAAAGHNldEFkZHJUb0ludE1hcHBpbmdWYWx1ZQAAAAMAAAALbWFwcGluZ05hbWUAAAAEYWRkcgAAAAN2YWwDCQAAZwAAAAIAAAAAA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cGluZ1ZhbHVlAAAAAwIAAAAJbWFwU3RyaW5nCQAEJQAAAAEFAAAABHRoaXMFAAAAAmZkCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAATEFAAAAAmZkBQAAAANuaWwAAAAAa21FMw==", "height": 2117875, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FfiDvLFSkBzdniT4NYuZB1vXwSfhYTRo8n8hyWT68oMk Next: 9u9imMxY4wQaXT3vXPskY3PdEFJugWdNzetQGpwZ12ut Diff:
OldNewDifferences
3232
3333
3434 @Callable(i)
35-func adsd (index) = [StringEntry("1", split(getStringValue(this, getAddrToIntMappingKey("mapString", toString(this))), separator)[index])]
35+func adsd (index) = {
36+ let fd = split(getStringValue(this, getAddrToIntMappingKey("mapString", toString(this))), separator)[index]
37+ let fsad = setAddrToIntMappingValue("mapString", toString(this), fd)
38+[StringEntry("1", fd)]
39+ }
3640
3741
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let separator = "/"
55
66 func getAddrToIntMappingKey (mappingName,addr) = makeString([mappingName, addr], separator)
77
88
99 func generateStruct (a,b,c,d,e) = {
1010 let arr = [toString(a), toString(b), toString(c), toString(d), toString(e)]
1111 makeString(arr, separator)
1212 }
1313
1414
1515 func setAddrToIntMappingValue (mappingName,addr,val) = if ((150 >= size(val)))
1616 then StringEntry(getAddrToIntMappingKey("mapString", addr), val)
1717 else throw("overcrowded")
1818
1919
2020 func getListOfArrays (mappingName,addr) = split(getStringValue(this, getAddrToIntMappingKey(mappingName, addr)), separator)
2121
2222
2323 func getAddrToIntMappingIndex (mappingName,addr) = size(getListOfArrays("mapString", addr))
2424
2525
2626 @Callable(i)
2727 func qwe (a,b,c,d,e) = {
2828 let setValue = generateStruct(a, b, c, d, e)
2929 [setAddrToIntMappingValue("mapString", toString(this), setValue)]
3030 }
3131
3232
3333
3434 @Callable(i)
35-func adsd (index) = [StringEntry("1", split(getStringValue(this, getAddrToIntMappingKey("mapString", toString(this))), separator)[index])]
35+func adsd (index) = {
36+ let fd = split(getStringValue(this, getAddrToIntMappingKey("mapString", toString(this))), separator)[index]
37+ let fsad = setAddrToIntMappingValue("mapString", toString(this), fd)
38+[StringEntry("1", fd)]
39+ }
3640
3741

github/deemru/w8io/026f985 
21.19 ms