tx · Ed3gArbgg1KoxqytCbZTuPSxsVjccZ7UjYAF6CAoAWyq
3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA: -0.01400000 Waves
2019.10.26 17:50 [737240] smart account 3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA > SELF 0.00000000 Waves
{
"type": 13,
"id": "Ed3gArbgg1KoxqytCbZTuPSxsVjccZ7UjYAF6CAoAWyq",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1572101496643,
"version": 1,
"sender": "3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA",
"senderPublicKey": "CaLwDVLXcV8Cr9MBZ4fzmW3emUhYEjcGz9uw12Fyf7SF",
"proofs": [
"49rd2saHQwRNG3b6762v1MNFFpMivMTjFcyEDVjemaRCGSuWHVqQSuPp8cUuTu579fWT4sfnfGvuAkUs8LCgVjMo"
],
"script": "base64:AAIDAAAAAAAAAAgIARIECgIICAAAAAAAAAABAAAAAWkBAAAAAldOAAAAAgAAAARrZXl4AAAABG5vdGUEAAAADVNlbmRlckFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAFQWRkcjECAAAAIzNOMnR3ajhlVDZLU3NuQW45cG1DZzgxZmoyek13bkRlbVVBBAAAAARLZXkxAgAAAANhYmMEAAAABUFkZHIyAgAAACMzTXJxQmFlcmc4aURiY2ZiNlBYMTdxUXhTZVJldkF1M0hLQgQAAAAFQWRkcjMJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQIAAAAjM04ydHdqOGVUNktTc25BbjlwbUNnODFmajJ6TXduRGVtVUEEAAAAC1RleHRGcm9tS2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABUFkZHIzBQAAAARrZXl4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAABE5PTkUDCQAAAAAAAAIFAAAAC1RleHRGcm9tS2V5AgAAAAROT05FAwkAAAAAAAACBQAAAA1TZW5kZXJBZGRyZXNzBQAAAAVBZGRyMgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAEa2V5eAUAAAAEbm90ZQUAAAADbmlsCQAAAgAAAAECAAAADU5vdCBwZXJtaXR0ZWQJAAACAAAAAQIAAAASS2V5IGFscmVhZHkgZXhpc3RzAAAAACnv5RA=",
"chainId": 84,
"height": 737240,
"spentComplexity": 0
}
View: original | compacted
Prev: ESf8bHJYSr7qanVQ2ByeAVa96GGJXieWPP33XT9DFhEK
Next: BkT7D4Z1hNnA9zYLJTVk5KVJD5iL9SnvkdPzu91jySGc
Diff:
Old | New | | Differences |
---|
9 | 9 | | let Addr1 = "3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA" |
---|
10 | 10 | | let Key1 = "abc" |
---|
11 | 11 | | let Addr2 = "3MrqBaerg8iDbcfb6PX17qQxSeRevAu3HKB" |
---|
12 | | - | let Addr3 = addressFromStringValue("3MrqBaerg8iDbcfb6PX17qQxSeRevAu3HKB") |
---|
| 12 | + | let Addr3 = addressFromStringValue("3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA") |
---|
13 | 13 | | let TextFromKey = match getString(Addr3, keyx) { |
---|
14 | 14 | | case a: String => |
---|
15 | 15 | | a |
---|
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 | | - | let Addr3 = addressFromStringValue("3MrqBaerg8iDbcfb6PX17qQxSeRevAu3HKB") |
---|
| 12 | + | let Addr3 = addressFromStringValue("3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA") |
---|
13 | 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 | | |
---|