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