From cb26b5a8a90a94c323d34a559ce40a9c089c572d Mon Sep 17 00:00:00 2001 From: Apisit Ritreungroj Date: Thu, 16 May 2024 23:25:35 +0700 Subject: [PATCH] fix: typo --- .../wallet-tester/src/common/helpers/buildUnsignedTx.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/utilities/wallet-tester/src/common/helpers/buildUnsignedTx.ts b/utilities/wallet-tester/src/common/helpers/buildUnsignedTx.ts index f4cfb531cf..59f981467b 100644 --- a/utilities/wallet-tester/src/common/helpers/buildUnsignedTx.ts +++ b/utilities/wallet-tester/src/common/helpers/buildUnsignedTx.ts @@ -172,11 +172,6 @@ export default async function buildUnsignedTx( txBuilder.add_required_signer(Ed25519KeyHash.from_hex(stakeCred)); } - // #15 add network id - if (builder.networkId) { - // note: network id will be added after build the transaction builder - } - // aux data const auxMetadata = AuxiliaryData.new(); const txMetadata = GeneralTransactionMetadata.new(); @@ -225,7 +220,7 @@ export default async function buildUnsignedTx( // build a full transaction, passing in empty witness set const txBody = txBuilder.build(); - // set network id after build + // #15 add network id if (builder.networkId && [0, 1].includes(Number(builder.networkId))) { const networkId = Number(builder.networkId) === 0 ? NetworkId.testnet() : NetworkId.mainnet() txBody.set_network_id(networkId);