We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2b403d commit 60b7d12Copy full SHA for 60b7d12
src/constants/addresses.ts
@@ -77,7 +77,7 @@ export type Identifier = keyof ContractAddressMap[keyof ContractAddressMap]
77
78
export function getAddress(identifier: Identifier, chainId: number): string {
79
const addressesForChain = addresses[chainId]
80
- if (!addresses) {
+ if (!addressesForChain) {
81
throw new Error(`No addresses found for chain ID ${chainId}`)
82
}
83
0 commit comments