Skip to content

Commit 043f0da

Browse files
fix: better gas cost estimation for opBNB (#3227)
1 parent 58d14c9 commit 043f0da

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.changeset/swift-humans-lie.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@thirdweb-dev/sdk": patch
3+
"thirdweb": patch
4+
---
5+
6+
Better gas estimation for opBNB mainnet & testnet

legacy_packages/sdk/src/evm/common/gas-price.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,9 @@ function isOpStackChain(chainId: number) {
138138
chainId === Zora.chainId ||
139139
chainId === ZoraSepoliaTestnet.chainId ||
140140
chainId === Celo.chainId ||
141-
chainId === CeloAlfajoresTestnet.chainId
141+
chainId === CeloAlfajoresTestnet.chainId ||
142+
chainId === 204 || // opBNB
143+
chainId === 5611 // opBNB testnet
142144
);
143145
}
144146

packages/thirdweb/src/chains/constants.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ const opChains = [
1717
919, // mode testnet
1818
42220, // celo
1919
44787, // celo testnet
20+
204, // opBNB
21+
5611, // opBNB testnet
2022
];
2123

2224
/**

0 commit comments

Comments
 (0)