Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Commit

Permalink
getWeb3ReadOnly to update web3 when user switch the network (#3034)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniSomoza committed Nov 22, 2021
1 parent 2b92443 commit 38ab408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/logic/wallets/getWeb3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export const getAddressFromDomain = (name: string): Promise<string> => {
if (isValidCryptoDomainName(name)) {
return getAddressFromUnstoppableDomain(name)
}
return web3.eth.ens.getAddress(name)
return getWeb3ReadOnly().eth.ens.getAddress(name)
}

export const getContentFromENS = (name: string): Promise<ContentHash> => web3.eth.ens.getContenthash(name)
Expand Down

0 comments on commit 38ab408

Please sign in to comment.