fix: client.getEnsName
not fetching Ens Data
#34
Labels
bug
Something isn't working
help wanted
Extra attention is needed
hot task
Doubled points in the reward table
Bug Report
Ponder version
0.3.10
Current behavior
We are using
Viem
throughPonder
to make the communication with the Swaplace Smart Contract deployed on Sepolia to fetch Ens information about a user, but whenever the function is called, it always returns the same errorError resolving ENS for address AnyAddressHere: TypeError: Cannot read properties of undefined (reading 'toLowerCase')
.Expected behavior
When running the script
npm run dev
the ponder should execute and do not bring any errors for address that are corrected passed.Steps to reproduce
Run the command
npm run dev
as it's in theponder
branch, it will show the error previously presented.Related code
Other information
Despite what the error is implying, the parameter being passed to the function is a correct address, an
owner
parameter that is also passed in other functions inside the same scope, and it works fine, meaning that theclient.getEnsName(address);
might be the problem.In communication with the Ponder team, they've told us that they've realized a fix for the problem in version 0.3.10, but it could still be holding the error, so it needs further investigation.
We suggest working with the Ponder team to fix this error.
Ponder Telegram -> https://t.me/ponder_sh
Related code
getEns.ts
Swaplace.ts
The text was updated successfully, but these errors were encountered: