Skip to content
This repository was archived by the owner on Sep 14, 2021. It is now read-only.

Commit 998469a

Browse files
committed
fix chain id
1 parent f98b181 commit 998469a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/src/lib/token/token.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import erc721Abi from './erc721Abi'
66

77
const getProviderByChainId = (chainId) => {
88
if (chainId === '100') return new JsonRpcProvider(process.env.XDAI_RPC_URL)
9-
return new InfuraProvider(networkName, process.env.INFURA_ENDPOINT_KEY)
9+
return new InfuraProvider(chainId, process.env.INFURA_ENDPOINT_KEY)
1010
}
1111

1212
export const checkWorthiness = async ({ token, balance, userAddress }) => {

0 commit comments

Comments
 (0)