tx · A1D6YFYiymtQW8iCyUcVx4B3fesTxtnby2rF4VLp6HsP 3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA: -0.01400000 Waves 2019.10.26 15:51 [737125] smart account 3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA > SELF 0.00000000 Waves
{ "type": 13, "id": "A1D6YFYiymtQW8iCyUcVx4B3fesTxtnby2rF4VLp6HsP", "fee": 1400000, "feeAssetId": null, "timestamp": 1572094285235, "version": 1, "sender": "3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA", "senderPublicKey": "CaLwDVLXcV8Cr9MBZ4fzmW3emUhYEjcGz9uw12Fyf7SF", "proofs": [ "3Rx5cUr5zbguLEeqpKU5cEArnUD5xQu1BNrsmXakjcrL7dKcjbVcFzMhEDMfxwJnMU2PnRXWwp6yRbyXyiHxXKH5" ], "script": "base64:AAIDAAAAAAAAAAgIARIECgIICAAAAAAAAAABAAAAAWkBAAAAAldOAAAAAgAAAARrZXl4AAAABG5vdGUEAAAADVNlbmRlckFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAIRmFrZU5vdGUCAAAABERlbnkEAAAABUFkZHIxAgAAACMzTjJ0d2o4ZVQ2S1NzbkFuOXBtQ2c4MWZqMnpNd25EZW1VQQQAAAAES2V5MQIAAAAGTXlLZXkxBAAAAAdBbHJlYWR5AgAAABJLZXkgQWxyZWFkeSBFeGlzdHMEAAAABUFkZHIyAgAAACMzTXJxQmFlcmc4aURiY2ZiNlBYMTdxUXhTZVJldkF1M0hLQgQAAAAFQWRkcjMJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQIAAAAjM01ycUJhZXJnOGlEYmNmYjZQWDE3cVF4U2VSZXZBdTNIS0IEAAAADFRleHRGcm9tS2V5MQkBAAAAB2V4dHJhY3QAAAABCQAEHQAAAAIJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQUAAAAFQWRkcjEFAAAABEtleTEEAAAADFRleHRGcm9tS2V5MgkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAFQWRkcjMFAAAABEtleTEDCQAAAAAAAAIFAAAADFRleHRGcm9tS2V5MQIAAAAACQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAARrZXl4BQAAAAxUZXh0RnJvbUtleTEFAAAAA25pbAMJAAAAAAAAAgUAAAANU2VuZGVyQWRkcmVzcwUAAAAFQWRkcjIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAABGtleXgFAAAAB0FscmVhZHkFAAAAA25pbAkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAANU2VuZGVyQWRkcmVzcwUAAAAIRmFrZU5vdGUFAAAAA25pbAAAAAAVyBZp", "chainId": 84, "height": 737125, "spentComplexity": 0 } View: original | compacted Prev: 8XvPz115AK5N1sfMeoHQR4n2mTrGXbtMwC3UVJEFqLsr Next: 7rx2eJR7JPXK5wDHtEWWZV1Ymt3T8pjTF2zaywaLmq4j Diff:
Old | New | Differences | |
---|---|---|---|
9 | 9 | let FakeNote = "Deny" | |
10 | 10 | let Addr1 = "3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA" | |
11 | 11 | let Key1 = "MyKey1" | |
12 | + | let Already = "Key Already Exists" | |
12 | 13 | let Addr2 = "3MrqBaerg8iDbcfb6PX17qQxSeRevAu3HKB" | |
13 | 14 | let Addr3 = addressFromStringValue("3MrqBaerg8iDbcfb6PX17qQxSeRevAu3HKB") | |
14 | - | let NewVar = extract(getString(addressFromStringValue(Addr1), Key1)) | |
15 | - | let NewVar2 = getStringValue(Addr3, Key1) | |
16 | - | if ((SenderAddress == Addr2)) | |
17 | - | then WriteSet([DataEntry(keyx, NewVar)]) | |
18 | - | else WriteSet([DataEntry(SenderAddress, FakeNote)]) | |
15 | + | let TextFromKey1 = extract(getString(addressFromStringValue(Addr1), Key1)) | |
16 | + | let TextFromKey2 = getStringValue(Addr3, Key1) | |
17 | + | if ((TextFromKey1 == "")) | |
18 | + | then WriteSet([DataEntry(keyx, TextFromKey1)]) | |
19 | + | else if ((SenderAddress == Addr2)) | |
20 | + | then WriteSet([DataEntry(keyx, Already)]) | |
21 | + | else WriteSet([DataEntry(SenderAddress, FakeNote)]) | |
19 | 22 | } | |
20 | 23 | ||
21 | 24 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | 7 | func WN (keyx,note) = { | |
8 | 8 | let SenderAddress = toBase58String(i.caller.bytes) | |
9 | 9 | let FakeNote = "Deny" | |
10 | 10 | let Addr1 = "3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA" | |
11 | 11 | let Key1 = "MyKey1" | |
12 | + | let Already = "Key Already Exists" | |
12 | 13 | let Addr2 = "3MrqBaerg8iDbcfb6PX17qQxSeRevAu3HKB" | |
13 | 14 | let Addr3 = addressFromStringValue("3MrqBaerg8iDbcfb6PX17qQxSeRevAu3HKB") | |
14 | - | let NewVar = extract(getString(addressFromStringValue(Addr1), Key1)) | |
15 | - | let NewVar2 = getStringValue(Addr3, Key1) | |
16 | - | if ((SenderAddress == Addr2)) | |
17 | - | then WriteSet([DataEntry(keyx, NewVar)]) | |
18 | - | else WriteSet([DataEntry(SenderAddress, FakeNote)]) | |
15 | + | let TextFromKey1 = extract(getString(addressFromStringValue(Addr1), Key1)) | |
16 | + | let TextFromKey2 = getStringValue(Addr3, Key1) | |
17 | + | if ((TextFromKey1 == "")) | |
18 | + | then WriteSet([DataEntry(keyx, TextFromKey1)]) | |
19 | + | else if ((SenderAddress == Addr2)) | |
20 | + | then WriteSet([DataEntry(keyx, Already)]) | |
21 | + | else WriteSet([DataEntry(SenderAddress, FakeNote)]) | |
19 | 22 | } | |
20 | 23 | ||
21 | 24 |
github/deemru/w8io/169f3d6 31.20 ms ◑