Skip to content

Commit

Permalink
Minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaszslabon committed Oct 26, 2023
1 parent 80f360e commit 03838af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions system-tests/test/deposit-redemption.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ describe("System Test - Deposit and redemption", () => {

const depositAmount = BigNumber.from(2000000)
const depositSweepTxFee = BigNumber.from(10000)
const depositTxFee = BigNumber.from(1500)
// Number of retries for Electrum requests.
const ELECTRUM_RETRIES = 5
// Initial backoff step in milliseconds that will be increased exponentially for
Expand Down Expand Up @@ -144,7 +145,6 @@ describe("System Test - Deposit and redemption", () => {
Hex.from(systemTestsContext.depositorBitcoinKeyPair.publicKey.compressed),
BitcoinNetwork.Testnet,
)
const fee = BigNumber.from(1500)
const depositorUtxos = await electrumClient.findAllUnspentTransactionOutputs(
depositorBitcoinAddress
)
Expand All @@ -155,7 +155,7 @@ describe("System Test - Deposit and redemption", () => {
electrumClient,
true,
depositorUtxos,
fee
depositTxFee
))

console.log(`
Expand Down Expand Up @@ -427,7 +427,6 @@ describe("System Test - Deposit and redemption", () => {
Hex.from(systemTestsContext.depositorBitcoinKeyPair.publicKey.compressed),
BitcoinNetwork.Testnet,
)
const fee = BigNumber.from(1500)
const depositorUtxos = await electrumClient.findAllUnspentTransactionOutputs(
depositorBitcoinAddress
)
Expand All @@ -438,7 +437,7 @@ describe("System Test - Deposit and redemption", () => {
electrumClient,
true,
depositorUtxos,
fee
depositTxFee
))

console.log(`
Expand Down
4 changes: 2 additions & 2 deletions system-tests/test/minting-unminting.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ describe("System Test - Minting and unminting", () => {

const depositAmount = BigNumber.from(2000000)
const depositSweepTxFee = BigNumber.from(10000)
const depositTxFee = BigNumber.from(1500)
// Number of retries for Electrum requests.
const ELECTRUM_RETRIES = 5
// Initial backoff step in milliseconds that will be increased exponentially for
Expand Down Expand Up @@ -147,7 +148,6 @@ describe("System Test - Minting and unminting", () => {
Hex.from(systemTestsContext.depositorBitcoinKeyPair.publicKey.compressed),
BitcoinNetwork.Testnet,
)
const fee = BigNumber.from(1500)
const depositorUtxos = await electrumClient.findAllUnspentTransactionOutputs(
depositorBitcoinAddress
)
Expand All @@ -158,7 +158,7 @@ describe("System Test - Minting and unminting", () => {
electrumClient,
true,
depositorUtxos,
fee
depositTxFee
))

console.log(`
Expand Down

0 comments on commit 03838af

Please sign in to comment.