Skip to content

Commit

Permalink
Update b3 sepolia to match enum naming convention (#1575)
Browse files Browse the repository at this point in the history
* Update b3 sepolia to match enum naming convention

* Update utils.ts
  • Loading branch information
ryanio authored Oct 24, 2024
1 parent 5e4554b commit 939b264
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 3 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ export enum Chain {
Zora = "zora",
/** Sei */
Sei = "sei",
/** B3 */
B3 = "b3",

// Testnet Chains
Expand All @@ -149,7 +150,8 @@ export enum Chain {
ZoraSepolia = "zora_sepolia",
/** Sei Testnet */
SeiTestnet = "sei_testnet",
B3_Sepolia = "b3_sepolia",
/** B3 Sepolia */
B3Sepolia = "b3_sepolia",
}

/**
Expand Down
10 changes: 4 additions & 6 deletions src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export const getChainId = (chain: Chain) => {
return "1328";
case Chain.B3:
return "8333";
case Chain.B3_Sepolia:
case Chain.B3Sepolia:
return "1993";
default:
throw new Error(`Unknown chainId for ${chain}`);
Expand Down Expand Up @@ -256,15 +256,13 @@ export const getWETHAddress = (chain: Chain) => {
case Chain.OptimismSepolia:
case Chain.Zora:
case Chain.ZoraSepolia:
case Chain.B3:
case Chain.B3Sepolia:
return "0x4200000000000000000000000000000000000006";
case Chain.Sei:
return "0xe30fedd158a2e3b13e9badaeabafc5516e95e8c7";
case Chain.SeiTestnet:
return "0x3921ea6cf927be80211bb57f19830700285b0ada";
case Chain.B3:
return "0x4200000000000000000000000000000000000006";
case Chain.B3_Sepolia:
return "0x4200000000000000000000000000000000000006";
default:
throw new Error(`Unknown WETH address for ${chain}`);
}
Expand Down Expand Up @@ -329,7 +327,7 @@ export const isTestChain = (chain: Chain): boolean => {
case Chain.SolanaDevnet:
case Chain.ZoraSepolia:
case Chain.SeiTestnet:
case Chain.B3_Sepolia:
case Chain.B3Sepolia:
return true;
default:
return false;
Expand Down

0 comments on commit 939b264

Please sign in to comment.