Skip to content

Commit

Permalink
feat: allow enabling balance ramp on all chains
Browse files Browse the repository at this point in the history
  • Loading branch information
aramalipoor committed Dec 1, 2022
1 parent 52d68da commit fbc03a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ export class BalanceRampClient {
);

if (
this.config.enabledChainIds === undefined ||
!this.config.enabledChainIds.includes(chainId)
this.config.enabledChainIds !== 'ALL' &&
(this.config.enabledChainIds === undefined ||
!this.config.enabledChainIds.includes(chainId))
) {
return originalSigner.sendTransaction(transactionRequest);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/core/balance-ramp/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export type BalanceRampConfig = {
ignoreCurrentBalance: boolean;
inputCurrency?: string;
resolvers: BalanceResolver[];
enabledChainIds?: number[];
enabledChainIds?: number[] | 'ALL';
maxGasLimit?: BigNumberish;
};

Expand Down

0 comments on commit fbc03a9

Please sign in to comment.