tx · 88oFh9bsJAGWeMvbCTSrDyR5K1S82XMW3W6bjKf7Gfch

3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA:  -0.01400000 Waves

2019.10.26 16:20 [737153] smart account 3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA > SELF 0.00000000 Waves

{ "type": 13, "id": "88oFh9bsJAGWeMvbCTSrDyR5K1S82XMW3W6bjKf7Gfch", "fee": 1400000, "feeAssetId": null, "timestamp": 1572096068772, "version": 1, "sender": "3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA", "senderPublicKey": "CaLwDVLXcV8Cr9MBZ4fzmW3emUhYEjcGz9uw12Fyf7SF", "proofs": [ "5ZP7Shq1miy5AMRamqr6yqNvxmDPFnqBzjyRr9pDFcc5agWdYBW5vfGt14pNYuK3TTbSvFyPA7YZxkkPZjPixvar" ], "script": "base64:AAIDAAAAAAAAAAgIARIECgIICAAAAAAAAAABAAAAAWkBAAAAAldOAAAAAgAAAARrZXl4AAAABG5vdGUEAAAADVNlbmRlckFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAIRmFrZU5vdGUCAAAABERlbnkEAAAABUFkZHIxAgAAACMzTjJ0d2o4ZVQ2S1NzbkFuOXBtQ2c4MWZqMnpNd25EZW1VQQQAAAAES2V5MQIAAAAGTXlLZXkxBAAAAAdBbHJlYWR5AgAAABJLZXkgQWxyZWFkeSBFeGlzdHMEAAAABUFkZHIyAgAAACMzTXJxQmFlcmc4aURiY2ZiNlBYMTdxUXhTZVJldkF1M0hLQgQAAAAFQWRkcjMJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQIAAAAjM01ycUJhZXJnOGlEYmNmYjZQWDE3cVF4U2VSZXZBdTNIS0IEAAAADFRleHRGcm9tS2V5MQkBAAAAB2V4dHJhY3QAAAABCQAEHQAAAAIJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQUAAAAFQWRkcjEFAAAABGtleXgEAAAADFRleHRGcm9tS2V5MgkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAFQWRkcjMFAAAABEtleTEDCQAAAAAAAAIFAAAADVNlbmRlckFkZHJlc3MFAAAABUFkZHIyAwkAAAAAAAACBQAAAAxUZXh0RnJvbUtleTECAAAAAAkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAEa2V5eAUAAAAHQWxyZWFkeQUAAAADbmlsCQAAAgAAAAECAAAAEktleSBhbHJlYWR5IGV4aXN0cwkAAAIAAAABAgAAAA1Ob3QgcGVybWl0dGVkAAAAAERETSQ=", "chainId": 84, "height": 737153, "spentComplexity": 0 } View: original | compacted Prev: 7rx2eJR7JPXK5wDHtEWWZV1Ymt3T8pjTF2zaywaLmq4j Next: ALGBFF93qAskZTXyN33NHcVRSkNr86HPngZEPUMbZ1qx Diff:
OldNewDifferences
1414 let Addr3 = addressFromStringValue("3MrqBaerg8iDbcfb6PX17qQxSeRevAu3HKB")
1515 let TextFromKey1 = extract(getString(addressFromStringValue(Addr1), keyx))
1616 let TextFromKey2 = getStringValue(Addr3, Key1)
17- if ((TextFromKey1 == ""))
18- then WriteSet([DataEntry(keyx, TextFromKey1)])
19- else if ((SenderAddress == Addr2))
17+ if ((SenderAddress == Addr2))
18+ then if ((TextFromKey1 == ""))
2019 then WriteSet([DataEntry(keyx, Already)])
21- else WriteSet([DataEntry(SenderAddress, FakeNote)])
20+ else throw("Key already exists")
21+ else throw("Not permitted")
2222 }
2323
2424
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 FakeNote = "Deny"
1010 let Addr1 = "3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA"
1111 let Key1 = "MyKey1"
1212 let Already = "Key Already Exists"
1313 let Addr2 = "3MrqBaerg8iDbcfb6PX17qQxSeRevAu3HKB"
1414 let Addr3 = addressFromStringValue("3MrqBaerg8iDbcfb6PX17qQxSeRevAu3HKB")
1515 let TextFromKey1 = extract(getString(addressFromStringValue(Addr1), keyx))
1616 let TextFromKey2 = getStringValue(Addr3, Key1)
17- if ((TextFromKey1 == ""))
18- then WriteSet([DataEntry(keyx, TextFromKey1)])
19- else if ((SenderAddress == Addr2))
17+ if ((SenderAddress == Addr2))
18+ then if ((TextFromKey1 == ""))
2019 then WriteSet([DataEntry(keyx, Already)])
21- else WriteSet([DataEntry(SenderAddress, FakeNote)])
20+ else throw("Key already exists")
21+ else throw("Not permitted")
2222 }
2323
2424

github/deemru/w8io/169f3d6 
30.76 ms