Skip to content

generating-transactions.md is outdated #703

@bluezdot

Description

@bluezdot

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions