tx · 6kvVEeeRuQugak71iEgrpvu9M1JCUDVV79rNSHz1NmQP
3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42: -0.00200000 Waves
2022.06.29 15:28 [2117728] smart account 3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42 > SELF 0.00000000 Waves
{
"type": 13,
"id": "6kvVEeeRuQugak71iEgrpvu9M1JCUDVV79rNSHz1NmQP",
"fee": 200000,
"feeAssetId": null,
"timestamp": 1656505771450,
"version": 2,
"chainId": 84,
"sender": "3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42",
"senderPublicKey": "Bm8NA6cDADuRW1tDcjPsFdpsoUGwdxSD16MjDxtar9JB",
"proofs": [
"4sEhLYsdcJWArT8aWydzZpVSz9qj5Qxwv59LZ5a6DC9FfkR3ahRhrSNc6K6nTTgeYGuBxuJ5gPV9Arf1wD94WrR3"
],
"script": "base64:AAIFAAAAAAAAABIIAhIDCgEIEgMKAQESBAoCAQEAAAAGAAAAAAlzZXBhcmF0b3ICAAAAAV8BAAAAFmdldEFkZHJUb0ludE1hcHBpbmdLZXkAAAACAAAAC21hcHBpbmdOYW1lAAAABGFkZHIJAAS5AAAAAgkABEwAAAACBQAAAAttYXBwaW5nTmFtZQkABEwAAAACBQAAAARhZGRyBQAAAANuaWwFAAAACXNlcGFyYXRvcgEAAAAYZ2V0QWRkclRvSW50TWFwcGluZ1ZhbHVlAAAAAgAAAAttYXBwaW5nTmFtZQAAAARhZGRyCQAEtQAAAAIJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABHRoaXMJAQAAABZnZXRBZGRyVG9JbnRNYXBwaW5nS2V5AAAAAgUAAAALbWFwcGluZ05hbWUFAAAABGFkZHICAAAAAV8BAAAAGGdldEFkZHJUb0ludE1hcHBpbmdJbmRleAAAAAIAAAALbWFwcGluZ05hbWUAAAAEYWRkcgkAAGQAAAACCQABkAAAAAEJAQAAABhnZXRBZGRyVG9JbnRNYXBwaW5nVmFsdWUAAA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A25pbAkAAAIAAAABAgAAAAxvdXQgb2YgcmFuZ2UAAAABaQEAAAATZ2V0RWxlbWVudEZyb21BcnJheQAAAAIAAAAFaW5kZXgAAAAHaW5kZXhJbgMJAABnAAAAAgkBAAAAGmdldEFkZHJUb0ludE1hcHBpbmdJbmRleEluAAAAAQUAAAAHaW5kZXhJbgkAAGUAAAACBQAAAAdpbmRleEluAAAAAAAAAAABCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAATIJAAGRAAAAAgkABLUAAAACCQABkQAAAAIJAQAAABhnZXRBZGRyVG9JbnRNYXBwaW5nVmFsdWUAAAACAgAAAAltYXBTdHJpbmcJAAQlAAAAAQUAAAAEdGhpcwUAAAAFaW5kZXgCAAAAAS8JAABlAAAAAgUAAAAHaW5kZXhJbgAAAAAAAAAAAQUAAAADbmlsCQAAAgAAAAECAAAADG91dCBvZiByYW5nZQAAAACRU5Gj",
"height": 2117728,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 61tHnvuhJH7d6dL7dQu7jgopyzvd2yF9asp949KyhwfW
Next: 6ZXcymZMyipsVpXrQgCW8ADTdnExuSRbe8255VSZKSyX
Diff:
Old | New | | Differences |
---|
15 | 15 | | func g (h) = size(split(e("mapString", toString(this))[h], "/")) |
---|
16 | 16 | | |
---|
17 | 17 | | |
---|
18 | | - | func i (c,d,j) = StringEntry(b("mapString", d), j) |
---|
| 18 | + | func i (c,d,j) = if ((300 >= size(j))) |
---|
| 19 | + | then StringEntry(b("mapString", d), j) |
---|
| 20 | + | else throw("overcrowded") |
---|
19 | 21 | | |
---|
20 | 22 | | |
---|
21 | 23 | | @Callable(k) |
---|
|
24 | 26 | | |
---|
25 | 27 | | |
---|
26 | 28 | | @Callable(k) |
---|
27 | | - | func getArrayFromStruct (m) = if ((m > f("mapString", toString(this)))) |
---|
28 | | - | then throw("out of range") |
---|
29 | | - | else [StringEntry("1", e("mapString", toString(this))[(m - 1)])] |
---|
| 29 | + | func getArrayFromStruct (m) = if ((f("mapString", toString(this)) >= (m - 1))) |
---|
| 30 | + | then [StringEntry("1", e("mapString", toString(this))[(m - 1)])] |
---|
| 31 | + | else throw("out of range") |
---|
30 | 32 | | |
---|
31 | 33 | | |
---|
32 | 34 | | |
---|
33 | 35 | | @Callable(k) |
---|
34 | | - | func getElementFromArray (m,h) = if ((h > g(h))) |
---|
35 | | - | then throw("out of range") |
---|
36 | | - | else [StringEntry("2", split(e("mapString", toString(this))[m], "/")[(h - 1)])] |
---|
| 36 | + | func getElementFromArray (m,h) = if ((g(h) >= (h - 1))) |
---|
| 37 | + | then [StringEntry("2", split(e("mapString", toString(this))[m], "/")[(h - 1)])] |
---|
| 38 | + | else throw("out of range") |
---|
37 | 39 | | |
---|
38 | 40 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = "_" |
---|
5 | 5 | | |
---|
6 | 6 | | func b (c,d) = makeString([c, d], a) |
---|
7 | 7 | | |
---|
8 | 8 | | |
---|
9 | 9 | | func e (c,d) = split(getStringValue(this, b(c, d)), "_") |
---|
10 | 10 | | |
---|
11 | 11 | | |
---|
12 | 12 | | func f (c,d) = (size(e("mapString", d)) + 1) |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | func g (h) = size(split(e("mapString", toString(this))[h], "/")) |
---|
16 | 16 | | |
---|
17 | 17 | | |
---|
18 | | - | func i (c,d,j) = StringEntry(b("mapString", d), j) |
---|
| 18 | + | func i (c,d,j) = if ((300 >= size(j))) |
---|
| 19 | + | then StringEntry(b("mapString", d), j) |
---|
| 20 | + | else throw("overcrowded") |
---|
19 | 21 | | |
---|
20 | 22 | | |
---|
21 | 23 | | @Callable(k) |
---|
22 | 24 | | func setStruct (l) = [i("mapString", toString(this), l)] |
---|
23 | 25 | | |
---|
24 | 26 | | |
---|
25 | 27 | | |
---|
26 | 28 | | @Callable(k) |
---|
27 | | - | func getArrayFromStruct (m) = if ((m > f("mapString", toString(this)))) |
---|
28 | | - | then throw("out of range") |
---|
29 | | - | else [StringEntry("1", e("mapString", toString(this))[(m - 1)])] |
---|
| 29 | + | func getArrayFromStruct (m) = if ((f("mapString", toString(this)) >= (m - 1))) |
---|
| 30 | + | then [StringEntry("1", e("mapString", toString(this))[(m - 1)])] |
---|
| 31 | + | else throw("out of range") |
---|
30 | 32 | | |
---|
31 | 33 | | |
---|
32 | 34 | | |
---|
33 | 35 | | @Callable(k) |
---|
34 | | - | func getElementFromArray (m,h) = if ((h > g(h))) |
---|
35 | | - | then throw("out of range") |
---|
36 | | - | else [StringEntry("2", split(e("mapString", toString(this))[m], "/")[(h - 1)])] |
---|
| 36 | + | func getElementFromArray (m,h) = if ((g(h) >= (h - 1))) |
---|
| 37 | + | then [StringEntry("2", split(e("mapString", toString(this))[m], "/")[(h - 1)])] |
---|
| 38 | + | else throw("out of range") |
---|
37 | 39 | | |
---|
38 | 40 | | |
---|