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:
Old | New | | Differences |
---|
14 | 14 | | let Addr3 = addressFromStringValue("3MrqBaerg8iDbcfb6PX17qQxSeRevAu3HKB") |
---|
15 | 15 | | let TextFromKey1 = extract(getString(addressFromStringValue(Addr1), keyx)) |
---|
16 | 16 | | 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 == "")) |
---|
20 | 19 | | then WriteSet([DataEntry(keyx, Already)]) |
---|
21 | | - | else WriteSet([DataEntry(SenderAddress, FakeNote)]) |
---|
| 20 | + | else throw("Key already exists") |
---|
| 21 | + | else throw("Not permitted") |
---|
22 | 22 | | } |
---|
23 | 23 | | |
---|
24 | 24 | | |
---|
Full:
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 | 12 | | let Already = "Key Already Exists" |
---|
13 | 13 | | let Addr2 = "3MrqBaerg8iDbcfb6PX17qQxSeRevAu3HKB" |
---|
14 | 14 | | let Addr3 = addressFromStringValue("3MrqBaerg8iDbcfb6PX17qQxSeRevAu3HKB") |
---|
15 | 15 | | let TextFromKey1 = extract(getString(addressFromStringValue(Addr1), keyx)) |
---|
16 | 16 | | 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 == "")) |
---|
20 | 19 | | then WriteSet([DataEntry(keyx, Already)]) |
---|
21 | | - | else WriteSet([DataEntry(SenderAddress, FakeNote)]) |
---|
| 20 | + | else throw("Key already exists") |
---|
| 21 | + | else throw("Not permitted") |
---|
22 | 22 | | } |
---|
23 | 23 | | |
---|
24 | 24 | | |
---|