Skip to content

Commit 41be954

Browse files
authored
feat: Add celo chains to known op stack chains (#2848)
1 parent e8e3368 commit 41be954

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.changeset/stupid-ads-knock.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+
add `celo` chains to known `op stack` chains

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import {
1111
BaseSepoliaTestnet,
1212
Zora,
1313
ZoraSepoliaTestnet,
14+
Celo,
15+
CeloAlfajoresTestnet,
1416
} from "@thirdweb-dev/chains";
1517

1618
type FeeData = {
@@ -134,7 +136,9 @@ function isOpStackChain(chainId: number) {
134136
chainId === Base.chainId ||
135137
chainId === BaseSepoliaTestnet.chainId ||
136138
chainId === Zora.chainId ||
137-
chainId === ZoraSepoliaTestnet.chainId
139+
chainId === ZoraSepoliaTestnet.chainId ||
140+
chainId === Celo.chainId ||
141+
chainId === CeloAlfajoresTestnet.chainId
138142
);
139143
}
140144

packages/thirdweb/src/chains/constants.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ const opChains = [
1515
zoraSepolia.id,
1616
34443, // mode
1717
919, // mode testnet
18+
42220, // celo
19+
44787, // celo testnet
1820
];
1921

2022
/**

0 commit comments

Comments
 (0)