Skip to content

Commit 60b7d12

Browse files
philbow61baroooo
andauthored
fix: check correct addresses variable
Co-authored-by: baroooo <baranseltekin@gmail.com>
1 parent e2b403d commit 60b7d12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/constants/addresses.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export type Identifier = keyof ContractAddressMap[keyof ContractAddressMap]
7777

7878
export function getAddress(identifier: Identifier, chainId: number): string {
7979
const addressesForChain = addresses[chainId]
80-
if (!addresses) {
80+
if (!addressesForChain) {
8181
throw new Error(`No addresses found for chain ID ${chainId}`)
8282
}
8383

0 commit comments

Comments
 (0)