Skip to content

Commit

Permalink
tests passing while testing for invalid burn hash
Browse files Browse the repository at this point in the history
  • Loading branch information
setzeus committed Oct 11, 2024
1 parent 30c09f6 commit dc9bbdd
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions contracts/tests/sbtc-withdrawal.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -838,19 +838,21 @@ describe("optimization tests for completing withdrawals", () => {
alice
);
}
txOk(
withdrawal.completeWithdrawals(
txids.map((txid, index) => {
txErr(
withdrawal.completeWithdrawals({
withdrawals: txids.map((txid, index) => {
return {
requestId: index + 1,
requestId: BigInt(index + 1),
status: true,
signerBitmap: 1n,
bitcoinTxid: txid,
outputIndex: 0n,
fee: maxFee,
fee: 10n,
};
})
),
}),
burnHeight: 10n,
burnHash: new Uint8Array(32).fill(0)
}),
deployer
);
});
Expand Down

0 comments on commit dc9bbdd

Please sign in to comment.