Commit 7d9ff637 authored by Paul Razvan Berg's avatar Paul Razvan Berg Committed by Noah Zinsmeister

Replace networkId with chainId (#521)

parent 795caac4
......@@ -182,15 +182,15 @@ export function useTokenContract(tokenAddress, withSignerIfPossible = true) {
// returns null on errors
export function useFactoryContract(withSignerIfPossible = true) {
const { networkId, library, account } = useWeb3React()
const { chainId, library, account } = useWeb3React()
return useMemo(() => {
try {
return getFactoryContract(networkId, library, withSignerIfPossible ? account : undefined)
return getFactoryContract(chainId, library, withSignerIfPossible ? account : undefined)
} catch {
return null
}
}, [networkId, library, withSignerIfPossible, account])
}, [chainId, library, withSignerIfPossible, account])
}
export function useExchangeContract(exchangeAddress, withSignerIfPossible = true) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment