diff --git a/src/models/ethereum-models.ts b/src/models/ethereum-models.ts index 36826b7..059b7dd 100644 --- a/src/models/ethereum-models.ts +++ b/src/models/ethereum-models.ts @@ -97,6 +97,7 @@ export class JSONFriendlyRawVault { btcMintFeeBasisPoints: BigNumber.from(jsonVaultObj.btcMintFeeBasisPoints.hex), btcRedeemFeeBasisPoints: BigNumber.from(jsonVaultObj.btcRedeemFeeBasisPoints.hex), taprootPubKey: jsonVaultObj.taprootPubKey, + icyIntegrationAddress: jsonVaultObj.icyIntegrationAddress }; } } diff --git a/tests/unit/bitcoin-functions.test.ts b/tests/unit/bitcoin-functions.test.ts index 15b7778..81cbea4 100644 --- a/tests/unit/bitcoin-functions.test.ts +++ b/tests/unit/bitcoin-functions.test.ts @@ -162,7 +162,7 @@ describe('Bitcoin Functions', () => { const alicePublicKey = Buffer.from(TEST_ALICE_NATIVE_SEGWIT_PUBLIC_KEY_1, 'hex'); const alicePayment = p2wpkh(alicePublicKey, regtest); - finalizeUserInputs(transaction, alicePayment); + finalizeUserInputs(transaction, alicePayment.script); expect(transaction.getInput(0).finalScriptWitness).toBeDefined(); expect(transaction.getInput(1).finalScriptWitness).toBeUndefined(); @@ -176,7 +176,7 @@ describe('Bitcoin Functions', () => { const alicePublicKey = Buffer.from(TEST_ALICE_NATIVE_SEGWIT_PUBLIC_KEY_2, 'hex'); const alicePayment = p2wpkh(alicePublicKey, regtest); - finalizeUserInputs(transaction, alicePayment); + finalizeUserInputs(transaction, alicePayment.script); expect(transaction.getInput(0).finalScriptWitness).toBeUndefined(); expect(transaction.getInput(1).finalScriptWitness).toBeUndefined(); @@ -192,7 +192,7 @@ describe('Bitcoin Functions', () => { ); const alicePayment = p2tr(alicePublicKey, undefined, regtest); - finalizeUserInputs(transaction, alicePayment); + finalizeUserInputs(transaction, alicePayment.script); expect(transaction.getInput(0).finalScriptWitness).toBeDefined(); expect(transaction.getInput(1).finalScriptWitness).toBeUndefined(); @@ -208,7 +208,7 @@ describe('Bitcoin Functions', () => { ); const alicePayment = p2tr(alicePublicKey, undefined, regtest); - finalizeUserInputs(transaction, alicePayment); + finalizeUserInputs(transaction, alicePayment.script); expect(transaction.getInput(0).finalScriptWitness).toBeUndefined(); expect(transaction.getInput(1).finalScriptWitness).toBeUndefined();