Skip to content

Commit

Permalink
Update system tests (#647)
Browse files Browse the repository at this point in the history
Request the redemption via the `depositorBridgeHandle.requestRedemption`
directly instead of  `requestRedemption` function. After refactoring in
#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
#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.
  • Loading branch information
lukasz-zimnoch committed Jul 12, 2023
2 parents b43f6a5 + a7aba22 commit 55e2735
Show file tree
Hide file tree
Showing 2 changed files with 304 additions and 104 deletions.
3 changes: 1 addition & 2 deletions system-tests/test/deposit-redemption.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,12 +262,11 @@ describe("System Test - Deposit and redemption", () => {
systemTestsContext.depositorBitcoinKeyPair.publicKey.compressed
)}`

await TBTC.requestRedemption(
await depositorBridgeHandle.requestRedemption(
systemTestsContext.walletBitcoinKeyPair.publicKey.compressed,
sweepUtxo,
redeemerOutputScript,
requestedAmount,
depositorBridgeHandle
)

console.log(
Expand Down
Loading

0 comments on commit 55e2735

Please sign in to comment.