-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
generating-transactions.md is outdated #703
Comments
@vsubhuman can you help with this? |
All from_hex functions are for deserialising the instance of the type itself from it's HEX version. In your example the TransactionHash itself is a library type, so the from_hex function expects you to pass the string with the transaction hash in it, not the transaction itself as hex. To calculate tx hash from a transaction use function: FixedTransaction.from_hex(txHexString).transaction_hash() See the difference that in the second case you are deserialising the transaction itself using from_hex and then calling a utility function for calculations. |
@bluezdot , see the "Examples" section from the latest major release description: https://github.com/Emurgo/cardano-serialization-lib/releases/tag/13.0.0 |
I tried this and it passed the error.
|
@vsubhuman, I'm trying to just build a tx to transfer token -> sign -> submit.
|
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.
I am getting an error on create txHash for setting vkeyWitness. I'm trying to replace
CardanoWasm.TransactionHash
by:but get this error:
The text was updated successfully, but these errors were encountered: