tx · YnEmfpiQrs5DdYzBQtjkEJoyrHZDiD98eoTkXpZCnzX
3N999QeyWVbYUiUDtPSGFbWVnpJuQmophhV: -0.01000000 Waves
2022.11.25 20:02 [2332896] smart account 3N999QeyWVbYUiUDtPSGFbWVnpJuQmophhV > SELF 0.00000000 Waves
{
"type": 13,
"id": "YnEmfpiQrs5DdYzBQtjkEJoyrHZDiD98eoTkXpZCnzX",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1669395800569,
"version": 2,
"chainId": 84,
"sender": "3N999QeyWVbYUiUDtPSGFbWVnpJuQmophhV",
"senderPublicKey": "fLkmrmMyKsNm5vMsi5P67zt5Jx5c5z9aiWSCs9S5dKJ",
"proofs": [
"snXFjdatxKEirWNyJSDvr8UPzJsoMZpx3cMtzXrAQTckRwq65HwJoUS13ogmrn4SBP4d34JFjG556dEQvp25pGq"
],
"script": "base64:AAIFAAAAAAAAAAgIAhIECgIIAQAAAAEBAAAAB2dldERhdGEAAAACAAAAA2FkcgAAAANrZXkEAAAABGRhdGEEAAAAByRtYXRjaDAJAAQbAAAAAgUAAAADYWRyBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAB0Jvb2xlYW4EAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEHBQAAAARkYXRhAAAAAQAAAAFpAQAAAAtyZWZ1bmRXYXZlcwAAAAIAAAAJdGltZXN0YW1wAAAABGNvc3QEAAAAA2tleQkAASwAAAACCQABLAAAAAIFAAAACXRpbWVzdGFtcAIAAAABLgkAAlgAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkEAAAABGRhdGEJAQAAAAdnZXREYXRhAAAAAgUAAAAEdGhpcwUAAAADa2V5AwUAAAAEZGF0YQkAAAIAAAABAgAAABlXdXJkZSBiZXJlaXRzIGF1c2dlemFobHQuCQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACBQAAAANrZXkGCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAEY29zdAUAAAAEdW5pdAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmSchO+",
"height": 2332896,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 5cBm2cS7DDXjHf28nTN7UX9Fr9tF2en99i5H7DVHpJuN
Next: none
Diff:
Old | New | | Differences |
---|
14 | 14 | | |
---|
15 | 15 | | @Callable(i) |
---|
16 | 16 | | func refundWaves (timestamp,cost) = { |
---|
17 | | - | let key = ((timestamp + ".") + toUtf8String(i.callerPublicKey)) |
---|
| 17 | + | let key = ((timestamp + ".") + toBase58String(i.callerPublicKey)) |
---|
18 | 18 | | let data = getData(this, key) |
---|
19 | 19 | | if (data) |
---|
20 | 20 | | then throw("Wurde bereits ausgezahlt.") |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func getData (adr,key) = { |
---|
5 | 5 | | let data = match getBoolean(adr, key) { |
---|
6 | 6 | | case a: Boolean => |
---|
7 | 7 | | a |
---|
8 | 8 | | case _ => |
---|
9 | 9 | | false |
---|
10 | 10 | | } |
---|
11 | 11 | | data |
---|
12 | 12 | | } |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | @Callable(i) |
---|
16 | 16 | | func refundWaves (timestamp,cost) = { |
---|
17 | | - | let key = ((timestamp + ".") + toUtf8String(i.callerPublicKey)) |
---|
| 17 | + | let key = ((timestamp + ".") + toBase58String(i.callerPublicKey)) |
---|
18 | 18 | | let data = getData(this, key) |
---|
19 | 19 | | if (data) |
---|
20 | 20 | | then throw("Wurde bereits ausgezahlt.") |
---|
21 | 21 | | else [BooleanEntry(key, true), ScriptTransfer(i.caller, cost, unit)] |
---|
22 | 22 | | } |
---|
23 | 23 | | |
---|
24 | 24 | | |
---|
25 | 25 | | @Verifier(tx) |
---|
26 | 26 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
27 | 27 | | |
---|