Skip to content

Commit

Permalink
fix: use BigNumber gte instead of >= (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
gzeoneth authored Jun 10, 2022
1 parent 37167e7 commit a5bd104
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@arbitrum/sdk",
"version": "1.1.6",
"version": "1.1.7",
"description": "Typescript library client-side interactions with Arbitrum",
"author": "Offchain Labs, Inc.",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/assetBridger/ethBridger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export class EthBridger extends AssetBridger<
// We could alternatively set the submission price to zero here and use the refunds instead, but that
// would be confusing for users tracking activity in block explorers.
// This is fixed with nitro's new depositEth message
if (submissionPrice >= params.amount)
if (submissionPrice.gte(params.amount))
throw new ArbSdkError('Not enough amount for submission cost')

const inbox = Inbox__factory.connect(
Expand Down

0 comments on commit a5bd104

Please sign in to comment.