tx · BkT7D4Z1hNnA9zYLJTVk5KVJD5iL9SnvkdPzu91jySGc
3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA: -0.01400000 Waves
2019.10.26 17:59 [737245] smart account 3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA > SELF 0.00000000 Waves
{
"type": 13,
"id": "BkT7D4Z1hNnA9zYLJTVk5KVJD5iL9SnvkdPzu91jySGc",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1572101957074,
"version": 1,
"sender": "3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA",
"senderPublicKey": "CaLwDVLXcV8Cr9MBZ4fzmW3emUhYEjcGz9uw12Fyf7SF",
"proofs": [
"226RkFu6ugyNrtMHGT7ataMjXWaTGkZLLdrFrhLF9PxFVqNpbwxcrKJgcDSVfpZ6oqBkW8tEC1HkRxPy5KN2Sb63"
],
"script": "base64:AAIDAAAAAAAAAAgIARIECgIICAAAAAAAAAABAAAAAWkBAAAAAldOAAAAAgAAAARrZXl4AAAABG5vdGUEAAAADVNlbmRlckFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAFQWRkcjECAAAAIzNOMnR3ajhlVDZLU3NuQW45cG1DZzgxZmoyek13bkRlbVVBBAAAAAVBZGRyMgIAAAAjM01ycUJhZXJnOGlEYmNmYjZQWDE3cVF4U2VSZXZBdTNIS0IEAAAABUFkZHIzCQEAAAAcQGV4dHJVc2VyKGFkZHJlc3NGcm9tU3RyaW5nKQAAAAECAAAAIzNOMnR3ajhlVDZLU3NuQW45cG1DZzgxZmoyek13bkRlbVVBBAAAAAtUZXh0RnJvbUtleQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAVBZGRyMwUAAAAEa2V5eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAROT05FAwkAAAAAAAACBQAAAAtUZXh0RnJvbUtleQIAAAAETk9ORQMJAAAAAAAAAgUAAAANU2VuZGVyQWRkcmVzcwUAAAAFQWRkcjIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAABGtleXgFAAAABG5vdGUFAAAAA25pbAkAAAIAAAABAgAAAA1Ob3QgcGVybWl0dGVkCQAAAgAAAAECAAAAEktleSBhbHJlYWR5IGV4aXN0cwAAAACO4eN/",
"chainId": 84,
"height": 737245,
"spentComplexity": 0
}
View: original | compacted
Prev: Ed3gArbgg1KoxqytCbZTuPSxsVjccZ7UjYAF6CAoAWyq
Next: none
Diff:
Old | New | | Differences |
---|
7 | 7 | | func WN (keyx,note) = { |
---|
8 | 8 | | let SenderAddress = toBase58String(i.caller.bytes) |
---|
9 | 9 | | let Addr1 = "3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA" |
---|
10 | | - | let Key1 = "abc" |
---|
11 | 10 | | let Addr2 = "3MrqBaerg8iDbcfb6PX17qQxSeRevAu3HKB" |
---|
12 | 11 | | let Addr3 = addressFromStringValue("3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA") |
---|
13 | 12 | | let TextFromKey = match getString(Addr3, keyx) { |
---|
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 | | - | let Key1 = "abc" |
---|
11 | 10 | | let Addr2 = "3MrqBaerg8iDbcfb6PX17qQxSeRevAu3HKB" |
---|
12 | 11 | | let Addr3 = addressFromStringValue("3N2twj8eT6KSsnAn9pmCg81fj2zMwnDemUA") |
---|
13 | 12 | | let TextFromKey = match getString(Addr3, keyx) { |
---|
14 | 13 | | case a: String => |
---|
15 | 14 | | a |
---|
16 | 15 | | case _ => |
---|
17 | 16 | | "NONE" |
---|
18 | 17 | | } |
---|
19 | 18 | | if ((TextFromKey == "NONE")) |
---|
20 | 19 | | then if ((SenderAddress == Addr2)) |
---|
21 | 20 | | then WriteSet([DataEntry(keyx, note)]) |
---|
22 | 21 | | else throw("Not permitted") |
---|
23 | 22 | | else throw("Key already exists") |
---|
24 | 23 | | } |
---|
25 | 24 | | |
---|
26 | 25 | | |
---|