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

Detect valid document store #36

Open
Nebulis opened this issue Jul 5, 2021 · 1 comment
Open

Detect valid document store #36

Nebulis opened this issue Jul 5, 2021 · 1 comment

Comments

@Nebulis
Copy link

Nebulis commented Jul 5, 2021

Is it possible de detect the document store is valid ?

image

This happens if I use my wallet address

@ChenRen93
Copy link
Contributor

Dated : 24 August 2021

Method tried :
getCodes() is used to get the block tags block height, reference https://docs.ethers.io/v5/single-page/#/v5/api/providers/provider/-%23-Provider-getCode. however, this method is not a direct method for validation but a workaround of checking the address is a contract. I could not give a 100% secure proof reasoning/backup that it will work in all cases of document store validation.

Dated at this point, there is no library or methods that can direct validate if the document store is a contract. This feature will be an ice-box for a further revisit in future.

@Nebulis Nebulis reopened this Aug 24, 2021
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