[SOLVED] network does not support ENS

moralis.js:42159 Uncaught (in promise) Error: network does not support ENS (operation=“ENS”, network=“bnb”, code=UNSUPPORTED_OPERATION, version=providers/5.5.2)
at Logger.makeError (moralis.js:42159:21)
at Logger.throwError (moralis.js:42168:20)
at Web3Provider. (moralis.js:44895:36)
at step (moralis.js:42936:23)
at Object.next (moralis.js:42917:53)
at fulfilled (moralis.js:42908:58)

it looks like the network is bnb in that error, what did you try to do there?

got same issue. is there any fixes for that. m using autotask to run my code snippet.

did you fix it? i have the same problem

We need more details e.g. code and what you’re doing to get this error. Check any of your parameters e.g. chain, address, RPC URL.

I’m trying to use ethers to let user sign typed data but I don’t know what I’m doing wrong

The error I get when I try to sign message :
Error: network does not support ENS (operation=“getResolver”, network=“maticmum”, code=UNSUPPORTED_OPERATION, version=providers/5.6.0).

Code :
const provider = await Moralis.enableWeb3()
const address= user.attributes.ethAddress
const signer= provider.getSigner(address)
const{domain, types, salesOrder: _salesOrder}= await buildSalesOrder(1, ‘sky’,2,3,4)

const signature = await signer._signTypedData(domain, types, _salesOrder);

Make sure you’ve passed in a valid address, and try hardcoding all your params in signTypedData.

The default ethers.js example works fine on Mumbai with your code except for your _signTypedData parameters (from const{domain, types, salesOrder: _salesOrder}= await buildSalesOrder(1, ‘sky’,2,3,4)), so check these too.

I basically fixed it by passing in the web3 auth connector into the enableweb3, thanks for answering though

1 Like
import {  useSigner} from "wagmi";
 const { data: signer } = useSigner();
 const factory = new ethers.ContractFactory(
          ERC721abi,
          ERC721bin,
          signer
        );

Error: network does not support ENS (operation="getResolver", network="matic", code=UNSUPPORTED_OPERATION, version=providers/5.7.2)
    at Logger.makeError (index.js?dd68:224:1)
    at Logger.throwError (index.js?dd68:233:1)
    at Web3Provider.eval (base-provider.js?4ba1:1791:1)
    at Generator.next (<anonymous>)
    at fulfilled (base-provider.js?4ba1:5:43)

i worked the 1st couple of time untill i rejected the TX once now it keep showing this error .

Nextjs , Wagmi, ethers im using

tried the same code in a different browser and it worked this time again …

Although i can move ahead but what if this happens if a client rejects the tx to change data .

Problem solved I use not using a valid eth address at the time of contract deployed . Was using dummy data which was causing the ENS error .

2 Likes