Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] context.client.getEnsName does not exist #988

Closed
robiiinos opened this issue Jul 21, 2024 · 0 comments
Closed

[BUG] context.client.getEnsName does not exist #988

robiiinos opened this issue Jul 21, 2024 · 0 comments

Comments

@robiiinos
Copy link
Contributor

While inside an indexing function, if we use context.client to lookup an ENS Name using getEnsName, it will throw because it's not a function.

Function + Error:

TypeError: context.client.getEnsName is not a function
    at /Desktop/ponder/my-app/src/index.ts:4:38
  2 |
  3 | ponder.on("ExampleContract:Transfer", async ({ context }) => {
> 4 |     const ens = await context.client.getEnsName({
    |                                      ^
  5 |         address: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
  6 |     });
  7 |

Expected result: getEnsName should return vitalik.eth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants