Commit d99d425a authored by smartcontracts's avatar smartcontracts Committed by GitHub

fix: fpac sdk bug (#9367)

Fixes a small bug in the SDK that could cause an error if there
aren't any games yet.
parent 256b4e47
---
'@eth-optimism/sdk': patch
---
Fixes a bug in the SDK for finalizing fpac withdrawals.
...@@ -1275,7 +1275,7 @@ export class CrossChainMessenger { ...@@ -1275,7 +1275,7 @@ export class CrossChainMessenger {
const latestGames = const latestGames =
await this.contracts.l1.DisputeGameFactory.findLatestGames( await this.contracts.l1.DisputeGameFactory.findLatestGames(
gameType, gameType,
gameCount.sub(1), Math.max(0, gameCount.sub(1).toNumber()),
Math.min(100, gameCount.toNumber()) Math.min(100, gameCount.toNumber())
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment