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:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# 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+ }
413
514
615 @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+ }
1023
1124
1225 @Verifier(tx)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# 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+ }
413
514
615 @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+ }
1023
1124
1225 @Verifier(tx)
1326 func verify () = match tx {
1427 case _: DataTransaction =>
1528 true
1629 case _: SetScriptTransaction =>
1730 true
1831 case _ =>
1932 true
2033 }
2134

github/deemru/w8io/169f3d6 
39.74 ms