tx · CGGq4QZZArdeNdAUBGJkPhH7ch29wrwoY1wJKCG7pZZ5

3Mqnv1LY2i4hshvHyccL5GEAVbVPRerPjKM:  -0.01000000 Waves

2022.11.24 18:42 [2331380] smart account 3Mqnv1LY2i4hshvHyccL5GEAVbVPRerPjKM > SELF 0.00000000 Waves

{ "type": 13, "id": "CGGq4QZZArdeNdAUBGJkPhH7ch29wrwoY1wJKCG7pZZ5", "fee": 1000000, "feeAssetId": null, "timestamp": 1669304691700, "version": 2, "chainId": 84, "sender": "3Mqnv1LY2i4hshvHyccL5GEAVbVPRerPjKM", "senderPublicKey": "FB5Eb3jaoFSDQEnfsjbmvMoP3Cc8ejvBySpsfYWC1vBg", "proofs": [ "55iuw9TQ5SgxdDK4bc2pfkQLT39np5jqnGKrWERPrYQsUu3kECgHALwMN3EGvBXpF9dgeNy9EuVmankpp9gKCELn" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIICAAAAAEBAAAAB2dldERhdGEAAAACAAAAA2FkcgAAAANrZXkEAAAABGRhdGEEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAADYWRyBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQIAAAAABQAAAARkYXRhAAAAAQAAAAFpAQAAABpzYXZlVmFsdWVPblN1cHBsaWVyQWNjb3VudAAAAAIAAAANZGVsSW5mVGV4dEtleQAAAA9kZWxJbmZUZXh0VmFsdWUEAAAADGVnZ2VyQWRkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAA5lZ2dlclB1YmxpY0tleQkAAlgAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkEAAAAEmVnZ2VyUHVibGljS2V5SGFzaAkAAfcAAAABCQABmwAAAAEFAAAADmVnZ2VyUHVibGljS2V5BAAAACNlZ2dlclB1YmxpY0tleUhhc2hPblN1cHBsaWVyQWNjb3VudAkAAZsAAAABCQEAAAAHZ2V0RGF0YQAAAAIFAAAABHRoaXMCAAAAFGNvbm5lY3Rpb24uRWdnZXIucmVmAwkAAAAAAAACBQAAABJlZ2dlclB1YmxpY0tleUhhc2gFAAAAI2VnZ2VyUHVibGljS2V5SGFzaE9uU3VwcGxpZXJBY2NvdW50CQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAADWRlbEluZlRleHRLZXkFAAAAD2RlbEluZlRleHRWYWx1ZQUAAAADbmlsCQAAAgAAAAEJAASwAAAAAQUAAAASZWdnZXJQdWJsaWNLZXlIYXNoAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmJXxeQ", "height": 2331380, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: JDK33MpoQPnomfaDEgJfEciPwUV5kfELcuGAMifLGB2N Next: E8xx43ZvzjuXQcUXiQKJg8xH3JvQcWJ4EWBGArcgNfaj Diff:
OldNewDifferences
2020 let eggerPublicKeyHashOnSupplierAccount = toBytes(getData(this, "connection.Egger.ref"))
2121 if ((eggerPublicKeyHash == eggerPublicKeyHashOnSupplierAccount))
2222 then [StringEntry(delInfTextKey, delInfTextValue)]
23- else throw("Account hat keine Berechtigung für diese Aktion.")
23+ else throw(toUtf8String(eggerPublicKeyHash))
2424 }
2525
2626
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func getData (adr,key) = {
55 let data = match getString(adr, key) {
66 case a: String =>
77 a
88 case _ =>
99 ""
1010 }
1111 data
1212 }
1313
1414
1515 @Callable(i)
1616 func saveValueOnSupplierAccount (delInfTextKey,delInfTextValue) = {
1717 let eggerAddress = toBase58String(i.caller.bytes)
1818 let eggerPublicKey = toBase58String(i.callerPublicKey)
1919 let eggerPublicKeyHash = sha256(toBytes(eggerPublicKey))
2020 let eggerPublicKeyHashOnSupplierAccount = toBytes(getData(this, "connection.Egger.ref"))
2121 if ((eggerPublicKeyHash == eggerPublicKeyHashOnSupplierAccount))
2222 then [StringEntry(delInfTextKey, delInfTextValue)]
23- else throw("Account hat keine Berechtigung für diese Aktion.")
23+ else throw(toUtf8String(eggerPublicKeyHash))
2424 }
2525
2626
2727 @Verifier(tx)
2828 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
2929

github/deemru/w8io/026f985 
49.54 ms