curve-js icon indicating copy to clipboard operation
curve-js copied to clipboard

resolver or addr is not configured for ENS name

Open chrisgem opened this issue 2 years ago • 3 comments

Hi, I'm trying to run the example from here https://github.com/curvefi/curve-js#router-exchange server-side using Alchemy web3 provider but I get the error below when calling routerExchange. Any help is greatly appreciated.

await curve.routerExchange('DAI', 'CRV', '1000');
Error: resolver or addr is not configured for ENS name (argument="name", value="", code=INVALID_ARGUMENT, version=contracts/5.6.1)
    REDACTED {
  reason: 'resolver or addr is not configured for ENS name',
  code: 'INVALID_ARGUMENT',
  argument: 'name',
  value: ''
}

chrisgem avatar May 23 '22 23:05 chrisgem

I think it's because you need signer for exchange tx. Alchemy provider is "read only" for now

Macket avatar Jun 24 '22 17:06 Macket

@Macket I got the same issue, trying to get data in ts code (backend), but got Error: resolver or addr is not configured for ENS name (argument="name", value="", code=INVALID_ARGUMENT, version=contracts/5.7.0)

await curve.init(
   'JsonRpc',
   {
       url: 'RPC_URL',
   });

quan-unizen avatar Apr 04 '23 18:04 quan-unizen

@quan-unizen can't even init? This code definitely works for me

await curve.init('JsonRpc', { url: RPC_URL }, { gasPrice: 0 });

Macket avatar Apr 20 '23 12:04 Macket