tx · Ch31hmk9An2BqFxeua1dwTcsXrdUB8m79i8mis9xPW8c
3N3fWNbJVcZyxCQjpMJLwwrVddKFd1SMc91: -0.00100000 Waves
2022.09.16 23:05 [2232117] smart account 3N3fWNbJVcZyxCQjpMJLwwrVddKFd1SMc91 > SELF 0.00000000 Waves
{
"type": 13,
"id": "Ch31hmk9An2BqFxeua1dwTcsXrdUB8m79i8mis9xPW8c",
"fee": 100000,
"feeAssetId": null,
"timestamp": 1663358719494,
"version": 2,
"chainId": 84,
"sender": "3N3fWNbJVcZyxCQjpMJLwwrVddKFd1SMc91",
"senderPublicKey": "GypMGxbQ4XTzLQC4dL8QfQoxb5XcuZcYzWeRuWhNNvpf",
"proofs": [
"3E3vWdRZ8tZJcDK7Ptar5Au9i8EbEuQdpDLMZbYwi1KSs5GBtpNpmLQqhZMuFnsQhCZK5VGJZ9ZoX1NYcnzWBi3J"
],
"script": "base64:BgIHCAISAwoBCAEBDXRyeUdldEludGVnZXIBA2tleQQHJG1hdGNoMAkAmggCBQR0aGlzBQNrZXkDCQABAgUHJG1hdGNoMAIDSW50BAFiBQckbWF0Y2gwBQFiAAABAWkBCXNhdmVfZGF0YQEEZGF0YQQCaWQJAQ10cnlHZXRJbnRlZ2VyAQICaWQEBm5ld19pZAkBDEludGVnZXJFbnRyeQICAmlkCQBkAgUCaWQAAQQKc2F2ZWRfZGF0YQkBC1N0cmluZ0VudHJ5AgkArAICAgNJRF8JAKQDAQUCaWQFBGRhdGEJAMwIAgUKc2F2ZWRfZGF0YQkAzAgCBQZuZXdfaWQFA25pbAECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXlDDau1",
"height": 2232117,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 443Ag56RHsFWQAGEg3gxKU4XGghnRcQsRZKKmqojUYxy
Next: 8yLwYBLEicKSUNf4rgc9Z4Tr5nXtcx1rFSScAjaasDYt
Diff:
Old | New | | Differences |
---|
13 | 13 | | func save_data (data) = { |
---|
14 | 14 | | let id = tryGetInteger("id") |
---|
15 | 15 | | let new_id = IntegerEntry("id", (id + 1)) |
---|
16 | | - | if ((new_id == new_id)) |
---|
17 | | - | then { |
---|
18 | | - | let saved_data = StringEntry(("ID_" + toString(id)), data) |
---|
19 | | - | [saved_data] |
---|
20 | | - | } |
---|
21 | | - | else throw("Strict value is not equal to itself.") |
---|
| 16 | + | let saved_data = StringEntry(("ID_" + toString(id)), data) |
---|
| 17 | + | [saved_data, new_id] |
---|
22 | 18 | | } |
---|
23 | 19 | | |
---|
24 | 20 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func tryGetInteger (key) = match getInteger(this, key) { |
---|
5 | 5 | | case b: Int => |
---|
6 | 6 | | b |
---|
7 | 7 | | case _ => |
---|
8 | 8 | | 0 |
---|
9 | 9 | | } |
---|
10 | 10 | | |
---|
11 | 11 | | |
---|
12 | 12 | | @Callable(i) |
---|
13 | 13 | | func save_data (data) = { |
---|
14 | 14 | | let id = tryGetInteger("id") |
---|
15 | 15 | | let new_id = IntegerEntry("id", (id + 1)) |
---|
16 | | - | if ((new_id == new_id)) |
---|
17 | | - | then { |
---|
18 | | - | let saved_data = StringEntry(("ID_" + toString(id)), data) |
---|
19 | | - | [saved_data] |
---|
20 | | - | } |
---|
21 | | - | else throw("Strict value is not equal to itself.") |
---|
| 16 | + | let saved_data = StringEntry(("ID_" + toString(id)), data) |
---|
| 17 | + | [saved_data, new_id] |
---|
22 | 18 | | } |
---|
23 | 19 | | |
---|
24 | 20 | | |
---|
25 | 21 | | @Verifier(tx) |
---|
26 | 22 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
27 | 23 | | |
---|