Skip to content

Commit

Permalink
add opBNB and its testnet to the BNB exclusions in gas logic
Browse files Browse the repository at this point in the history
  • Loading branch information
zoeyTM committed Oct 22, 2024
1 parent 09f5434 commit 565dd55
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/core/src/internal/execution/jsonrpc-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -654,12 +654,15 @@ export class EIP1193JsonRpcClient implements JsonRpcClient {
// Support zero gas fee chains, such as a private instances
// of blockchains using Besu. We explicitly exclude BNB
// Smartchain (chainId 56) and its testnet (chainId 97)
// as well as opBNB (chainId 204) and its testnet (chainId 5611)
// from this logic as it is EIP-1559 compliant but
// only sets a maxPriorityFeePerGas.
if (
latestBlock.baseFeePerGas === 0n &&
chainId !== 56 &&
chainId !== 97
chainId !== 97 &&
chainId !== 204 &&
chainId !== 5611
) {
return {
maxFeePerGas: 0n,
Expand Down

0 comments on commit 565dd55

Please sign in to comment.