-
Notifications
You must be signed in to change notification settings - Fork 136
Open
Description
Hi,
I've faced with the issue that Generating Transactions example is outdated. https://github.com/Emurgo/cardano-serialization-lib/blob/master/doc/getting-started/generating-transactions.md
Some logic was changed and method have been renamed.
- coins_per_utxo_word -> coins_per_utxo_bytes
- CardanoWasm.hash_transaction is remove
- ....
I am getting an error on create txHash for setting vkeyWitness. I'm trying to replace CardanoWasm.TransactionHash by:
- const txHash = CardanoWasm.TransactionHash.from_hex(txBody.to_hex());
but get this error:
[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "JsValue("Deserialization failed in TransactionHash because: Invalid cbor: expected tuple 'hash length' of length 32 but got length Len(188).")".] {
code: 'ERR_UNHANDLED_REJECTION'
Metadata
Metadata
Assignees
Labels
No labels