tx · FGy7wd38VmrWtboE3o3rAEUzW1DPagF6mV1QdGDxpnRx
3NBHyQ67TPHySpoiugp35ZBDmy57KGbLiqH: -0.09000000 Waves
2021.03.18 12:30 [1443004] smart account 3NBHyQ67TPHySpoiugp35ZBDmy57KGbLiqH > SELF 0.00000000 Waves
{
"type": 13,
"id": "FGy7wd38VmrWtboE3o3rAEUzW1DPagF6mV1QdGDxpnRx",
"fee": 9000000,
"feeAssetId": null,
"timestamp": 1616059858308,
"version": 2,
"chainId": 84,
"sender": "3NBHyQ67TPHySpoiugp35ZBDmy57KGbLiqH",
"senderPublicKey": "BEhKtjrMZynwX3AJB6WJbFrM6UxW9ytKVsn1nRb7pKrX",
"proofs": [
"6F9mFaTFWB5GNtLzNHDDGwUrb2ZdyJdTJhAzDFVj3vkvmy1NRBi7fekndxZFJy6a6yKfqVpUvWKZsgeHJzGrWoP"
],
"script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAQEAAAANZ2V0c3RvcmVkRGF0YQAAAAEAAAADYWRyBAAAAAR0ZXN0BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAAA2FkcgIAAAAEdGVzdAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAAFAAAABHRlc3QAAAABAAAAAWkBAAAACXN0b3JlRGF0YQAAAAAEAAAAB2FjY291bnQBAAAAGgFUL0WBL/LGUVp85B/U2NP5QXNyRaGmf8EKBAAAAAh0ZXN0RGF0YQkBAAAADWdldHN0b3JlZERhdGEAAAABCQEAAAAHQWRkcmVzcwAAAAEFAAAAB2FjY291bnQDCQEAAAACIT0AAAACBQAAAAh0ZXN0RGF0YQIAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAB215dGVzdF8FAAAACHRlc3REYXRhBQAAAANuaWwJAAACAAAAAQIAAAAFZmFsc2UAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24GBvitjUQ=",
"height": 1443004,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: FDejFDQfakpjeB8xrsptGEESivBDfNUbuq7LyYpez8TW
Next: 6JsTkyZfChbBvwTNHCKWUpf3wfoceFNsgRktoUw1itBF
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | func getstoredData (adr) = { |
---|
| 5 | + | let test = match getString(adr, "test") { |
---|
| 6 | + | case a: String => |
---|
| 7 | + | a |
---|
| 8 | + | case _ => |
---|
| 9 | + | "" |
---|
| 10 | + | } |
---|
| 11 | + | test |
---|
| 12 | + | } |
---|
4 | 13 | | |
---|
5 | 14 | | |
---|
6 | 15 | | @Callable(i) |
---|
7 | | - | func storeData (data) = if ((data != "")) |
---|
8 | | - | then [StringEntry("_q", data)] |
---|
9 | | - | else throw("error") |
---|
| 16 | + | func storeData () = { |
---|
| 17 | + | let account = base58'3MtE2oCkjx6BLhk6tviDComNZYHnohwczd7' |
---|
| 18 | + | let testData = getstoredData(Address(account)) |
---|
| 19 | + | if ((testData != "")) |
---|
| 20 | + | then [StringEntry("mytest_", testData)] |
---|
| 21 | + | else throw("false") |
---|
| 22 | + | } |
---|
10 | 23 | | |
---|
11 | 24 | | |
---|
12 | 25 | | @Verifier(tx) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | func getstoredData (adr) = { |
---|
| 5 | + | let test = match getString(adr, "test") { |
---|
| 6 | + | case a: String => |
---|
| 7 | + | a |
---|
| 8 | + | case _ => |
---|
| 9 | + | "" |
---|
| 10 | + | } |
---|
| 11 | + | test |
---|
| 12 | + | } |
---|
4 | 13 | | |
---|
5 | 14 | | |
---|
6 | 15 | | @Callable(i) |
---|
7 | | - | func storeData (data) = if ((data != "")) |
---|
8 | | - | then [StringEntry("_q", data)] |
---|
9 | | - | else throw("error") |
---|
| 16 | + | func storeData () = { |
---|
| 17 | + | let account = base58'3MtE2oCkjx6BLhk6tviDComNZYHnohwczd7' |
---|
| 18 | + | let testData = getstoredData(Address(account)) |
---|
| 19 | + | if ((testData != "")) |
---|
| 20 | + | then [StringEntry("mytest_", testData)] |
---|
| 21 | + | else throw("false") |
---|
| 22 | + | } |
---|
10 | 23 | | |
---|
11 | 24 | | |
---|
12 | 25 | | @Verifier(tx) |
---|
13 | 26 | | func verify () = match tx { |
---|
14 | 27 | | case _: DataTransaction => |
---|
15 | 28 | | true |
---|
16 | 29 | | case _: SetScriptTransaction => |
---|
17 | 30 | | true |
---|
18 | 31 | | case _ => |
---|
19 | 32 | | true |
---|
20 | 33 | | } |
---|
21 | 34 | | |
---|