Hi there,
I'm trying to follow the ID Registry steps/examples and none of these seem to work.
Overall the state of the docs could use some love. There's typos and just broken examples.
Take this page:
https://docs.farcaster.xyz/developers/guides/accounts/change-custody
- I'm confused why there are two examples, one for the
@farcaster/hub-web and one for viem, but in the later we still have a dependency to the @farcaster/hub-web package?!?
- How do we run these examples, these are
.ts files, but copy-pasting the contents will give an error
ERROR: Top-level await is currently not supported with the "cjs" output format
- there's an
...IdContract, contract without any reference
signature needs to be in fact toHex(signature) ?!
- I couldn't get a signature to work, keep getting 'Error: InvalidSignature()`, I think it needs some clear explanation which account (recipient or sender) is creating the signature and who's signing the transaction
Sorry for the wall of text, but I've spend a couple of hours trying to figure things out and I'm still blocked.
Would like to mention that the change of custody functionality is a security matter. I think these docs, but ideally tools to handle this, should be a top priority to be clearly available.
Appreciate any help with these
Hi there,
I'm trying to follow the ID Registry steps/examples and none of these seem to work.
Overall the state of the docs could use some love. There's typos and just broken examples.
Take this page:
https://docs.farcaster.xyz/developers/guides/accounts/change-custody
@farcaster/hub-weband one forviem, but in the later we still have a dependency to the@farcaster/hub-webpackage?!?.tsfiles, but copy-pasting the contents will give an error...IdContract,contract without any referencesignatureneeds to be in facttoHex(signature)?!Sorry for the wall of text, but I've spend a couple of hours trying to figure things out and I'm still blocked.
Would like to mention that the change of custody functionality is a security matter. I think these docs, but ideally tools to handle this, should be a top priority to be clearly available.
Appreciate any help with these