tx · 7ncA1nTiVmLekgqZYsd913QS6Zdtw5JhvtwXEVv2AGDK

3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN:  -0.01000000 Waves

2021.12.03 19:05 [1818313] smart account 3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN > SELF 0.00000000 Waves

{ "type": 13, "id": "7ncA1nTiVmLekgqZYsd913QS6Zdtw5JhvtwXEVv2AGDK", "fee": 1000000, "feeAssetId": null, "timestamp": 1638547533427, "version": 2, "chainId": 84, "sender": "3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN", "senderPublicKey": "3TJhvM5a7VSAiRyvEVwygRkiPC9ow5nM4LQ252H4vxWK", "proofs": [ "q4ijuX9DtKo9bHEQRYaxtbJunpPSyC8YkoymRU29XCyriC7pSVATaHGKwTe9dLNLTfMB6QDcKnA4ZMgWsvPeDPG" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAAAgAAAAAGbWFzdGVyAgAAACMzTXVXNHQxakNYSHQ4V1JzSFZMVWFyMzJFbnZKeFphUVdBeAAAAAAFc2VwYXICAAAABXx8fHx8AAAAAQAAAAFpAQAAAAVwYWludAAAAAEAAAAFaWRhdGEEAAAABG1heGkAAAAAAAAAAAEEAAAABHBpeGkAAAAAAAAAAAAEAAAADGNhbGxlckFkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAVwaXh4eQkABLUAAAACBQAAAAVpZGF0YQUAAAAFc2VwYXIEAAAABG1lc3MJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAABm1hc3RlcgUAAAAFc2VwYXICAAAABzEwMDAwMDAFAAAABXNlcGFyAgAAAAEwBQAAAAVzZXBhcgIAAAADdXJsCgEAAAAJaXN2YWxpZHh5AAAAAQAAAAF4BAAAAAckbWF0Y2gwCQAEtgAAAAEJAAGRAAAAAgUAAAAFcGl4eHkFAAAAAXgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAkABLYAAAABCQABkQAAAAIFAAAABXBpeHh5BQAAAAF4BwoBAAAACWdldHJlY29yZAAAAAEAAAABeAQAAAAHJG1hdGNoMAkABCIAAAABCQABkQAAAAIFAAAABXBpeHh5BQAAAAF4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEHAwkAAAAAAAACCQEAAAAJaXN2YWxpZHh5AAAAAQAAAAAAAAAAAAcJAAACAAAAAQIAAAARbm90IGNvcnJlY3QgY29vcmQEAAAAA3JlYwkBAAAACWdldHJlY29yZAAAAAEAAAAAAAAAAAADCQAAAAAAAAIFAAAAA3JlYwcJAAACAAAAAQIAAAAKbm90IGV4aXN0cwkAAAIAAAABAgAAAAZleGlzdHMAAAAAnhu9XA==", "height": 1818313, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2P7HD4v86Bb9UwFb7Sxz5f5uHA8a94hCaubjuuFD8ics Next: FWxPDDDqRkEURy9dQgywux4n7NXY3MVUZBn4MckZJcfe Diff:
OldNewDifferences
1212 let callerAdress = toBase58String(i.caller.bytes)
1313 let pixxy = split(idata, separ)
1414 let mess = ((((((master + separ) + "1000000") + separ) + "0") + separ) + "url")
15- func getrecord (x) = match getString(pixxy[0]) {
15+ func isvalidxy (x) = match parseInt(pixxy[x]) {
16+ case a: Int =>
17+ parseInt(pixxy[x])
18+ case _ =>
19+ false
20+ }
21+
22+ func getrecord (x) = match getString(pixxy[x]) {
1623 case a: String =>
1724 a
1825 case _ =>
1926 false
2027 }
2128
22- let rec = getrecord(0)
23- if ((rec == false))
24- then throw("not exists")
25- else throw("exists")
29+ if ((isvalidxy(0) == false))
30+ then throw("not correct coord")
31+ else {
32+ let rec = getrecord(0)
33+ if ((rec == false))
34+ then throw("not exists")
35+ else throw("exists")
36+ }
2637 }
2738
2839
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let master = "3MuW4t1jCXHt8WRsHVLUar32EnvJxZaQWAx"
55
66 let separ = "|||||"
77
88 @Callable(i)
99 func paint (idata) = {
1010 let maxi = 1
1111 let pixi = 0
1212 let callerAdress = toBase58String(i.caller.bytes)
1313 let pixxy = split(idata, separ)
1414 let mess = ((((((master + separ) + "1000000") + separ) + "0") + separ) + "url")
15- func getrecord (x) = match getString(pixxy[0]) {
15+ func isvalidxy (x) = match parseInt(pixxy[x]) {
16+ case a: Int =>
17+ parseInt(pixxy[x])
18+ case _ =>
19+ false
20+ }
21+
22+ func getrecord (x) = match getString(pixxy[x]) {
1623 case a: String =>
1724 a
1825 case _ =>
1926 false
2027 }
2128
22- let rec = getrecord(0)
23- if ((rec == false))
24- then throw("not exists")
25- else throw("exists")
29+ if ((isvalidxy(0) == false))
30+ then throw("not correct coord")
31+ else {
32+ let rec = getrecord(0)
33+ if ((rec == false))
34+ then throw("not exists")
35+ else throw("exists")
36+ }
2637 }
2738
2839

github/deemru/w8io/026f985 
24.21 ms