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

Get content hash from subnames error #145

Closed
rsodre opened this issue Aug 4, 2023 · 0 comments
Closed

Get content hash from subnames error #145

rsodre opened this issue Aug 4, 2023 · 0 comments

Comments

@rsodre
Copy link

rsodre commented Aug 4, 2023

Hello,

Every time I try to get a content hash from a subname, I get the following error...
I have tried with getRecords() and getContentHashRecord()
Is it possible?

  • version: 3.0.0-beta.1
  • name: hack.playerone.eth
  • network: goerli
Uncaught (in promise) ContractFunctionExecutionError: The contract function "resolve" reverted with the following reason:
UniversalResolver: Wildcard on non-extended resolvers is not supported

Contract Call:
  address:   0x56522D00C410a43BFfDF00a9A569489297385790
  function:  resolve(bytes name, bytes data)
  args:             (0x046861636b09706c617965726f6e650365746800, 0xbc1c58d1a8ad6d835ca594a6d1cd3bc2d409f4f1421c7d7191d17e2b358f2e9034856f9f)

Version: viem@1.5.3
    at getContractError (webpack-internal:///(app-pages-browser)/./node_modules/viem/dist/esm/utils/errors/getContractError.js:31:12)
    at AsyncFunction.decode (webpack-internal:///(app-pages-browser)/./node_modules/@ensdomains/ensjs/dist/esm/functions/public/universalWrapper.js:68:70)
    at decode (webpack-internal:///(app-pages-browser)/./node_modules/@ensdomains/ensjs/dist/esm/functions/public/getContentHashRecord.js:13:87)
    at single (webpack-internal:///(app-pages-browser)/./node_modules/@ensdomains/ensjs/dist/esm/utils/generateFunction.js:20:20)
    at async _get (webpack-internal:///(app-pages-browser)/./src/web3/hooks/useEnsClient.js:150:29)
getContractError @ getContractError.js:24
decode @ universalWrapper.js:53
decode @ getContentHashRecord.js:9
single @ generateFunction.js:14
...
@TateB TateB closed this as completed Jan 1, 2024
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

No branches or pull requests

2 participants