tx · ALGBFF93qAskZTXyN33NHcVRSkNr86HPngZEPUMbZ1qx

3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA:  -0.01400000 Waves

2019.10.26 16:22 [737155] smart account 3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA > SELF 0.00000000 Waves

{ "type": 13, "id": "ALGBFF93qAskZTXyN33NHcVRSkNr86HPngZEPUMbZ1qx", "fee": 1400000, "feeAssetId": null, "timestamp": 1572096173132, "version": 1, "sender": "3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA", "senderPublicKey": "CaLwDVLXcV8Cr9MBZ4fzmW3emUhYEjcGz9uw12Fyf7SF", "proofs": [ "3u1hUJkQVUT3PqETrfb59C8GeNMvESRceX54qqiJBZceeqgG7t1yiS8Kopj5nfLGmNi5XGj3sRzeHULhg3fmLGDw" ], "script": "base64:AAIDAAAAAAAAAAgIARIECgIICAAAAAAAAAABAAAAAWkBAAAAAldOAAAAAgAAAARrZXl4AAAABG5vdGUEAAAADVNlbmRlckFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAFQWRkcjECAAAAIzNOMnR3ajhlVDZLU3NuQW45cG1DZzgxZmoyek13bkRlbVVBBAAAAARLZXkxAgAAAAExBAAAAAVBZGRyMgIAAAAjM01ycUJhZXJnOGlEYmNmYjZQWDE3cVF4U2VSZXZBdTNIS0IEAAAABUFkZHIzCQEAAAAcQGV4dHJVc2VyKGFkZHJlc3NGcm9tU3RyaW5nKQAAAAECAAAAIzNNcnFCYWVyZzhpRGJjZmI2UFgxN3FReFNlUmV2QXUzSEtCBAAAAAxUZXh0RnJvbUtleTEJAQAAAAdleHRyYWN0AAAAAQkABB0AAAACCQEAAAAcQGV4dHJVc2VyKGFkZHJlc3NGcm9tU3RyaW5nKQAAAAEFAAAABUFkZHIxBQAAAARrZXl4BAAAAAxUZXh0RnJvbUtleTIJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABUFkZHIzBQAAAARLZXkxAwkAAAAAAAACBQAAAA1TZW5kZXJBZGRyZXNzBQAAAAVBZGRyMgMJAAAAAAAAAgUAAAAMVGV4dEZyb21LZXkxAgAAAAAJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAABGtleXgFAAAABG5vdGUFAAAAA25pbAkAAAIAAAABAgAAABJLZXkgYWxyZWFkeSBleGlzdHMJAAACAAAAAQIAAAANTm90IHBlcm1pdHRlZAAAAADTJfW4", "chainId": 84, "height": 737155, "spentComplexity": 0 } View: original | compacted Prev: 88oFh9bsJAGWeMvbCTSrDyR5K1S82XMW3W6bjKf7Gfch Next: 6izxpS1hMan9CNRX8hewjrZtyCe37X3HAHq7zmzig31V Diff:
OldNewDifferences
66 @Callable(i)
77 func WN (keyx,note) = {
88 let SenderAddress = toBase58String(i.caller.bytes)
9- let FakeNote = "Deny"
109 let Addr1 = "3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA"
11- let Key1 = "MyKey1"
12- let Already = "Key Already Exists"
10+ let Key1 = "1"
1311 let Addr2 = "3MrqBaerg8iDbcfb6PX17qQxSeRevAu3HKB"
1412 let Addr3 = addressFromStringValue("3MrqBaerg8iDbcfb6PX17qQxSeRevAu3HKB")
1513 let TextFromKey1 = extract(getString(addressFromStringValue(Addr1), keyx))
1614 let TextFromKey2 = getStringValue(Addr3, Key1)
1715 if ((SenderAddress == Addr2))
1816 then if ((TextFromKey1 == ""))
19- then WriteSet([DataEntry(keyx, Already)])
17+ then WriteSet([DataEntry(keyx, note)])
2018 else throw("Key already exists")
2119 else throw("Not permitted")
2220 }
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)
9- let FakeNote = "Deny"
109 let Addr1 = "3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA"
11- let Key1 = "MyKey1"
12- let Already = "Key Already Exists"
10+ let Key1 = "1"
1311 let Addr2 = "3MrqBaerg8iDbcfb6PX17qQxSeRevAu3HKB"
1412 let Addr3 = addressFromStringValue("3MrqBaerg8iDbcfb6PX17qQxSeRevAu3HKB")
1513 let TextFromKey1 = extract(getString(addressFromStringValue(Addr1), keyx))
1614 let TextFromKey2 = getStringValue(Addr3, Key1)
1715 if ((SenderAddress == Addr2))
1816 then if ((TextFromKey1 == ""))
19- then WriteSet([DataEntry(keyx, Already)])
17+ then WriteSet([DataEntry(keyx, note)])
2018 else throw("Key already exists")
2119 else throw("Not permitted")
2220 }
2321
2422

github/deemru/w8io/169f3d6 
32.53 ms