tx · 9PqUQ8J1WrP78X3cgPDbqqtsdRkzAtHuQKgxE5ur8hcJ

3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA:  -0.01400000 Waves

2019.10.26 17:40 [737229] smart account 3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA > SELF 0.00000000 Waves

{ "type": 13, "id": "9PqUQ8J1WrP78X3cgPDbqqtsdRkzAtHuQKgxE5ur8hcJ", "fee": 1400000, "feeAssetId": null, "timestamp": 1572100853885, "version": 1, "sender": "3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA", "senderPublicKey": "CaLwDVLXcV8Cr9MBZ4fzmW3emUhYEjcGz9uw12Fyf7SF", "proofs": [ "3JgV4DwzUQdCHEEENwDF1yTK9Qq2QREN9uiwpTbvVsGYFGDa2BZ7DnDE9zm8cK6c9AXc7i8k6rVxhaPqo8r6gUTK" ], "script": "base64:AAIDAAAAAAAAAAgIARIECgIICAAAAAAAAAABAAAAAWkBAAAAAldOAAAAAgAAAARrZXl4AAAABG5vdGUEAAAADVNlbmRlckFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAFQWRkcjECAAAAIzNOMnR3ajhlVDZLU3NuQW45cG1DZzgxZmoyek13bkRlbVVBBAAAAARLZXkxAgAAAANhYmMEAAAABUFkZHIyAgAAACMzTXJxQmFlcmc4aURiY2ZiNlBYMTdxUXhTZVJldkF1M0hLQgQAAAAFQWRkcjMJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQIAAAAjM01ycUJhZXJnOGlEYmNmYjZQWDE3cVF4U2VSZXZBdTNIS0IEAAAAC1RleHRGcm9tS2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABUFkZHIzBQAAAARLZXkxAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAABE5PTkUDCQAAAAAAAAIFAAAAC1RleHRGcm9tS2V5AgAAAAROT05FAwkAAAAAAAACBQAAAA1TZW5kZXJBZGRyZXNzBQAAAAVBZGRyMgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAEa2V5eAUAAAAEbm90ZQUAAAADbmlsCQAAAgAAAAECAAAADU5vdCBwZXJtaXR0ZWQJAAACAAAAAQIAAAASS2V5IGFscmVhZHkgZXhpc3RzAAAAAOotVn4=", "chainId": 84, "height": 737229, "spentComplexity": 0 } View: original | compacted Prev: 5bfNP2Vj7w5EbnJemCE2h5ZbEn2GV6Lp1Jd4FZu1J8S9 Next: ESf8bHJYSr7qanVQ2ByeAVa96GGJXieWPP33XT9DFhEK Diff:
OldNewDifferences
1010 let Key1 = "abc"
1111 let Addr2 = "3MrqBaerg8iDbcfb6PX17qQxSeRevAu3HKB"
1212 let Addr3 = addressFromStringValue("3MrqBaerg8iDbcfb6PX17qQxSeRevAu3HKB")
13- let TextFromKey2 = getStringValue(Addr3, Key1)
14- let TextFromKey3 = match getString(this, TextFromKey2) {
13+ let TextFromKey = match getString(Addr3, Key1) {
1514 case a: String =>
1615 a
1716 case _ =>
1817 "NONE"
1918 }
20- if ((SenderAddress == Addr2))
21- then if ((TextFromKey2 == ""))
19+ if ((TextFromKey == "NONE"))
20+ then if ((SenderAddress == Addr2))
2221 then WriteSet([DataEntry(keyx, note)])
23- else throw("Key already exists")
24- else throw("Not permitted")
22+ else throw("Not permitted")
23+ else throw("Key already exists")
2524 }
2625
2726
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func WN (keyx,note) = {
88 let SenderAddress = toBase58String(i.caller.bytes)
99 let Addr1 = "3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA"
1010 let Key1 = "abc"
1111 let Addr2 = "3MrqBaerg8iDbcfb6PX17qQxSeRevAu3HKB"
1212 let Addr3 = addressFromStringValue("3MrqBaerg8iDbcfb6PX17qQxSeRevAu3HKB")
13- let TextFromKey2 = getStringValue(Addr3, Key1)
14- let TextFromKey3 = match getString(this, TextFromKey2) {
13+ let TextFromKey = match getString(Addr3, Key1) {
1514 case a: String =>
1615 a
1716 case _ =>
1817 "NONE"
1918 }
20- if ((SenderAddress == Addr2))
21- then if ((TextFromKey2 == ""))
19+ if ((TextFromKey == "NONE"))
20+ then if ((SenderAddress == Addr2))
2221 then WriteSet([DataEntry(keyx, note)])
23- else throw("Key already exists")
24- else throw("Not permitted")
22+ else throw("Not permitted")
23+ else throw("Key already exists")
2524 }
2625
2726

github/deemru/w8io/169f3d6 
32.26 ms