tx · DDAsm48kYcLZjrJGrN7FTz1FwrSkmMrzxNzS1yzk6xe2
3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA: -0.01400000 Waves
2019.10.26 17:20 [737209] smart account 3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA > SELF 0.00000000 Waves
{
"type": 13,
"id": "DDAsm48kYcLZjrJGrN7FTz1FwrSkmMrzxNzS1yzk6xe2",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1572099689232,
"version": 1,
"sender": "3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA",
"senderPublicKey": "CaLwDVLXcV8Cr9MBZ4fzmW3emUhYEjcGz9uw12Fyf7SF",
"proofs": [
"2ydBxnuiPppqAc8sc6aQp8B2LieD5xdraLeqAyZww8P9WyQZHBav4VpmYqxENbDUM4MaSV6NicajscRCq6NWbEKb"
],
"script": "base64:AAIDAAAAAAAAAAgIARIECgIICAAAAAAAAAABAAAAAWkBAAAAAldOAAAAAgAAAARrZXl4AAAABG5vdGUEAAAADVNlbmRlckFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAFQWRkcjECAAAAIzNOMnR3ajhlVDZLU3NuQW45cG1DZzgxZmoyek13bkRlbVVBBAAAAARLZXkxAgAAAANhYmMEAAAABUFkZHIyAgAAACMzTXJxQmFlcmc4aURiY2ZiNlBYMTdxUXhTZVJldkF1M0hLQgQAAAAFQWRkcjMJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQIAAAAjM01ycUJhZXJnOGlEYmNmYjZQWDE3cVF4U2VSZXZBdTNIS0IEAAAADFRleHRGcm9tS2V5MwQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAARrZXl4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAABE5PTkUEAAAADFRleHRGcm9tS2V5MgkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAFQWRkcjMFAAAABEtleTEDCQAAAAAAAAIFAAAADVNlbmRlckFkZHJlc3MFAAAABUFkZHIyAwkAAAAAAAACBQAAAAxUZXh0RnJvbUtleTICAAAAAAkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAEa2V5eAUAAAAEbm90ZQUAAAADbmlsCQAAAgAAAAECAAAAEktleSBhbHJlYWR5IGV4aXN0cwkAAAIAAAABAgAAAA1Ob3QgcGVybWl0dGVkAAAAAKZJxUk=",
"chainId": 84,
"height": 737209,
"spentComplexity": 0
}
View: original | compacted
Prev: 6rH96xGGZKYML4Tc34G498DtnL3XwJPnogrQ99QwmEsE
Next: 5bfNP2Vj7w5EbnJemCE2h5ZbEn2GV6Lp1Jd4FZu1J8S9
Diff:
Old | New | | Differences |
---|
10 | 10 | | let Key1 = "abc" |
---|
11 | 11 | | let Addr2 = "3MrqBaerg8iDbcfb6PX17qQxSeRevAu3HKB" |
---|
12 | 12 | | let Addr3 = addressFromStringValue("3MrqBaerg8iDbcfb6PX17qQxSeRevAu3HKB") |
---|
13 | | - | let uuidExist = match getString(this, keyx) { |
---|
| 13 | + | let TextFromKey3 = match getString(this, keyx) { |
---|
14 | 14 | | case a: String => |
---|
15 | 15 | | a |
---|
16 | 16 | | case _ => |
---|
17 | 17 | | "NONE" |
---|
18 | 18 | | } |
---|
19 | | - | let TextFromKey1 = extract(getString(addressFromStringValue(Addr1), keyx)) |
---|
20 | 19 | | let TextFromKey2 = getStringValue(Addr3, Key1) |
---|
21 | 20 | | if ((SenderAddress == Addr2)) |
---|
22 | | - | then if ((TextFromKey1 == "")) |
---|
| 21 | + | then if ((TextFromKey2 == "")) |
---|
23 | 22 | | then WriteSet([DataEntry(keyx, note)]) |
---|
24 | 23 | | else throw("Key already exists") |
---|
25 | 24 | | else throw("Not permitted") |
---|
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 Addr1 = "3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA" |
---|
10 | 10 | | let Key1 = "abc" |
---|
11 | 11 | | let Addr2 = "3MrqBaerg8iDbcfb6PX17qQxSeRevAu3HKB" |
---|
12 | 12 | | let Addr3 = addressFromStringValue("3MrqBaerg8iDbcfb6PX17qQxSeRevAu3HKB") |
---|
13 | | - | let uuidExist = match getString(this, keyx) { |
---|
| 13 | + | let TextFromKey3 = match getString(this, keyx) { |
---|
14 | 14 | | case a: String => |
---|
15 | 15 | | a |
---|
16 | 16 | | case _ => |
---|
17 | 17 | | "NONE" |
---|
18 | 18 | | } |
---|
19 | | - | let TextFromKey1 = extract(getString(addressFromStringValue(Addr1), keyx)) |
---|
20 | 19 | | let TextFromKey2 = getStringValue(Addr3, Key1) |
---|
21 | 20 | | if ((SenderAddress == Addr2)) |
---|
22 | | - | then if ((TextFromKey1 == "")) |
---|
| 21 | + | then if ((TextFromKey2 == "")) |
---|
23 | 22 | | then WriteSet([DataEntry(keyx, note)]) |
---|
24 | 23 | | else throw("Key already exists") |
---|
25 | 24 | | else throw("Not permitted") |
---|
26 | 25 | | } |
---|
27 | 26 | | |
---|
28 | 27 | | |
---|