From af37b5189e7e57db7c705e0cb5e683650a77ddaa Mon Sep 17 00:00:00 2001 From: Apisit Ritreungroj Date: Thu, 16 May 2024 22:34:31 +0700 Subject: [PATCH] fix: aux hash --- .../wallet-tester/src/common/helpers/buildUnsignedTx.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/utilities/wallet-tester/src/common/helpers/buildUnsignedTx.ts b/utilities/wallet-tester/src/common/helpers/buildUnsignedTx.ts index 4c12ef8e3d..420b2aa823 100644 --- a/utilities/wallet-tester/src/common/helpers/buildUnsignedTx.ts +++ b/utilities/wallet-tester/src/common/helpers/buildUnsignedTx.ts @@ -148,7 +148,7 @@ export default async function buildUnsignedTx( // #7 add auxiliary data hash if (builder.auxiliaryDataHash) { - // auto generated + // note: the hash will be set after building auxillary data } // #8 add validity interval start @@ -173,7 +173,8 @@ export default async function buildUnsignedTx( // #15 add network id if (builder.networkId) { - // auto generated + txBuilder.add_change_if_needed + // note: auto generated } // aux data @@ -212,6 +213,7 @@ export default async function buildUnsignedTx( if (txMetadata.len()) { auxMetadata.set_metadata(txMetadata); + txBuilder.set_auxiliary_data(auxMetadata); } // generate fee incase too much ADA provided for fee