Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kskulikova committed Nov 27, 2024
1 parent 13d2db0 commit 6920506
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/models/ethereum-models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
}
}
Expand Down
8 changes: 4 additions & 4 deletions tests/unit/bitcoin-functions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand Down

0 comments on commit 6920506

Please sign in to comment.