Skip to content

Commit b56d4db

Browse files
committed
Fix system tests
Request the redemption via the `depositorBridgeHandle.requestRedemption` directly instead of `requestRedemption` function. After refactoring in `keep-network#632`, the `requestRedemption` requests redemption via tBTC token contract. In the current deposit scenario, we do not pass the vault address so the `depositor` does not actually have any tBTC tokens so we can't request redemption via `requestRedemption` fn with changes from `keep-network#632`. We are going to add a new scenario where we pass the TBTC vault address to the `revealDeposit` function to test the new mechanism of requesting the redemption via tBTC token contract in follow-up work.
1 parent 41f917a commit b56d4db

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

system-tests/test/deposit-redemption.test.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -262,12 +262,11 @@ describe("System Test - Deposit and redemption", () => {
262262
systemTestsContext.depositorBitcoinKeyPair.publicKey.compressed
263263
)}`
264264

265-
await TBTC.requestRedemption(
265+
await depositorBridgeHandle.requestRedemption(
266266
systemTestsContext.walletBitcoinKeyPair.publicKey.compressed,
267267
sweepUtxo,
268268
redeemerOutputScript,
269269
requestedAmount,
270-
depositorBridgeHandle
271270
)
272271

273272
console.log(

0 commit comments

Comments
 (0)