Skip to content

Commit

Permalink
fix: aux hash
Browse files Browse the repository at this point in the history
  • Loading branch information
apskhem committed May 16, 2024
1 parent d00fa4a commit af37b51
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions utilities/wallet-tester/src/common/helpers/buildUnsignedTx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit af37b51

Please sign in to comment.