Skip to content

Commit

Permalink
fix: Call effect without context (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
LautaroPetaccio authored Apr 13, 2023
1 parent 14382e2 commit de8df03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/transaction/sagas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ function* handleReplaceTransactionRequest(
}

// get latest block
const blockNumber: number = yield call(eth.getBlockNumber)
const blockNumber: number = yield call([eth, 'getBlockNumber'])

let highestNonce = 0
let replacedBy = null
Expand All @@ -231,7 +231,7 @@ function* handleReplaceTransactionRequest(
const endBlock = checkpoint || blockNumber - BLOCKS_DEPTH
for (let i = startBlock; i > endBlock; i--) {
let block: BlockWithTransactions = yield call(
eth.getBlockWithTransactions,
[eth, 'getBlockWithTransactions'],
i
)
const transactions: TransactionResponse[] =
Expand Down

0 comments on commit de8df03

Please sign in to comment.