tx · ESf8bHJYSr7qanVQ2ByeAVa96GGJXieWPP33XT9DFhEK
3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA: -0.01400000 Waves
2019.10.26 17:43 [737232] smart account 3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA > SELF 0.00000000 Waves
{
"type": 13,
"id": "ESf8bHJYSr7qanVQ2ByeAVa96GGJXieWPP33XT9DFhEK",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1572101070481,
"version": 1,
"sender": "3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA",
"senderPublicKey": "CaLwDVLXcV8Cr9MBZ4fzmW3emUhYEjcGz9uw12Fyf7SF",
"proofs": [
"2jT59FDXR5UmxEcpezzzKgLf51ALBhjzBQJsgwS7BK4Wsfv7bkPjupScTc7CBBzdP3UwNJyvAV5rzPFuSR6occow"
],
"script": "base64:AAIDAAAAAAAAAAgIARIECgIICAAAAAAAAAABAAAAAWkBAAAAAldOAAAAAgAAAARrZXl4AAAABG5vdGUEAAAADVNlbmRlckFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAFQWRkcjECAAAAIzNOMnR3ajhlVDZLU3NuQW45cG1DZzgxZmoyek13bkRlbVVBBAAAAARLZXkxAgAAAANhYmMEAAAABUFkZHIyAgAAACMzTXJxQmFlcmc4aURiY2ZiNlBYMTdxUXhTZVJldkF1M0hLQgQAAAAFQWRkcjMJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQIAAAAjM01ycUJhZXJnOGlEYmNmYjZQWDE3cVF4U2VSZXZBdTNIS0IEAAAAC1RleHRGcm9tS2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABUFkZHIzBQAAAARrZXl4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAABE5PTkUDCQAAAAAAAAIFAAAAC1RleHRGcm9tS2V5AgAAAAROT05FAwkAAAAAAAACBQAAAA1TZW5kZXJBZGRyZXNzBQAAAAVBZGRyMgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAEa2V5eAUAAAAEbm90ZQUAAAADbmlsCQAAAgAAAAECAAAADU5vdCBwZXJtaXR0ZWQJAAACAAAAAQIAAAASS2V5IGFscmVhZHkgZXhpc3RzAAAAAP02yHI=",
"chainId": 84,
"height": 737232,
"spentComplexity": 0
}
View: original | compacted
Prev: 9PqUQ8J1WrP78X3cgPDbqqtsdRkzAtHuQKgxE5ur8hcJ
Next: Ed3gArbgg1KoxqytCbZTuPSxsVjccZ7UjYAF6CAoAWyq
Diff:
Old | New | | Differences |
---|
10 | 10 | | let Key1 = "abc" |
---|
11 | 11 | | let Addr2 = "3MrqBaerg8iDbcfb6PX17qQxSeRevAu3HKB" |
---|
12 | 12 | | let Addr3 = addressFromStringValue("3MrqBaerg8iDbcfb6PX17qQxSeRevAu3HKB") |
---|
13 | | - | let TextFromKey = match getString(Addr3, Key1) { |
---|
| 13 | + | let TextFromKey = match getString(Addr3, keyx) { |
---|
14 | 14 | | case a: String => |
---|
15 | 15 | | a |
---|
16 | 16 | | case _ => |
---|
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 TextFromKey = match getString(Addr3, Key1) { |
---|
| 13 | + | let TextFromKey = match getString(Addr3, keyx) { |
---|
14 | 14 | | case a: String => |
---|
15 | 15 | | a |
---|
16 | 16 | | case _ => |
---|
17 | 17 | | "NONE" |
---|
18 | 18 | | } |
---|
19 | 19 | | if ((TextFromKey == "NONE")) |
---|
20 | 20 | | then if ((SenderAddress == Addr2)) |
---|
21 | 21 | | then WriteSet([DataEntry(keyx, note)]) |
---|
22 | 22 | | else throw("Not permitted") |
---|
23 | 23 | | else throw("Key already exists") |
---|
24 | 24 | | } |
---|
25 | 25 | | |
---|
26 | 26 | | |
---|