tx · 5cBm2cS7DDXjHf28nTN7UX9Fr9tF2en99i5H7DVHpJuN

3N999QeyWVbYUiUDtPSGFbWVnpJuQmophhV:  -0.01000000 Waves

2022.11.25 20:02 [2332896] smart account 3N999QeyWVbYUiUDtPSGFbWVnpJuQmophhV > SELF 0.00000000 Waves

{ "type": 13, "id": "5cBm2cS7DDXjHf28nTN7UX9Fr9tF2en99i5H7DVHpJuN", "fee": 1000000, "feeAssetId": null, "timestamp": 1669395754147, "version": 2, "chainId": 84, "sender": "3N999QeyWVbYUiUDtPSGFbWVnpJuQmophhV", "senderPublicKey": "fLkmrmMyKsNm5vMsi5P67zt5Jx5c5z9aiWSCs9S5dKJ", "proofs": [ "HJh9DnZY7Jfo9Ag2UBP9wTUZPSYSyfibY17kNtJt5mpAQiA1oKwgje19wn6RnhVTMQXMmnvCnpKxWw2UGTTyeXi" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIIAQAAAAEBAAAAB2dldERhdGEAAAACAAAAA2FkcgAAAANrZXkEAAAABGRhdGEEAAAAByRtYXRjaDAJAAQbAAAAAgUAAAADYWRyBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAB0Jvb2xlYW4EAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEHBQAAAARkYXRhAAAAAQAAAAFpAQAAAAtyZWZ1bmRXYXZlcwAAAAIAAAAJdGltZXN0YW1wAAAABGNvc3QEAAAAA2tleQkAASwAAAACCQABLAAAAAIFAAAACXRpbWVzdGFtcAIAAAABLgkABLAAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkEAAAABGRhdGEJAQAAAAdnZXREYXRhAAAAAgUAAAAEdGhpcwUAAAADa2V5AwUAAAAEZGF0YQkAAAIAAAABAgAAABlXdXJkZSBiZXJlaXRzIGF1c2dlemFobHQuCQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACBQAAAANrZXkGCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAEY29zdAUAAAAEdW5pdAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXlPHu5g", "height": 2332896, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HxcPzQPZHn5tgkqU36w6eoiDp6tVboMAVWhBVcAvw9ca Next: YnEmfpiQrs5DdYzBQtjkEJoyrHZDiD98eoTkXpZCnzX Diff:
OldNewDifferences
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func getData (adr,key) = {
5- let data = match getBinary(adr, key) {
6- case a: ByteVector =>
5+ let data = match getBoolean(adr, key) {
6+ case a: Boolean =>
77 a
88 case _ =>
9- ""
9+ false
1010 }
1111 data
1212 }
1515 @Callable(i)
1616 func refundWaves (timestamp,cost) = {
1717 let key = ((timestamp + ".") + toUtf8String(i.callerPublicKey))
18- let data = getBooleanValue(this, key)
18+ let data = getData(this, key)
1919 if (data)
2020 then throw("Wurde bereits ausgezahlt.")
2121 else [BooleanEntry(key, true), ScriptTransfer(i.caller, cost, unit)]
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func getData (adr,key) = {
5- let data = match getBinary(adr, key) {
6- case a: ByteVector =>
5+ let data = match getBoolean(adr, key) {
6+ case a: Boolean =>
77 a
88 case _ =>
9- ""
9+ false
1010 }
1111 data
1212 }
1313
1414
1515 @Callable(i)
1616 func refundWaves (timestamp,cost) = {
1717 let key = ((timestamp + ".") + toUtf8String(i.callerPublicKey))
18- let data = getBooleanValue(this, key)
18+ let data = getData(this, key)
1919 if (data)
2020 then throw("Wurde bereits ausgezahlt.")
2121 else [BooleanEntry(key, true), ScriptTransfer(i.caller, cost, unit)]
2222 }
2323
2424
2525 @Verifier(tx)
2626 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
2727

github/deemru/w8io/169f3d6 
52.21 ms