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

Error: IDL not found and unable to find account #207

Closed
SvenDowideit opened this issue Jul 13, 2022 · 3 comments · Fixed by #215
Closed

Error: IDL not found and unable to find account #207

SvenDowideit opened this issue Jul 13, 2022 · 3 comments · Fixed by #215
Assignees
Labels
bug Something isn't working
Milestone

Comments

@SvenDowideit
Copy link
Member

from #123

@SvenDowideit SvenDowideit added the bug Something isn't working label Jul 13, 2022
@SvenDowideit SvenDowideit added this to the 0.4.0 milestone Jul 13, 2022
@SvenDowideit SvenDowideit self-assigned this Jul 13, 2022
@SvenDowideit
Copy link
Member Author

The "Error: Unable to find account" looks to be due to trying to find token metadata that isn't there.

and because I returned that as a throw Error(), react keeps retrying

will probably be addressed with some changes i'm doing for #215

@nathanleclaire
Copy link
Contributor

IDL not found is normal, from Anchor decode. We need a check in the decode section to skip anchor decode attempt if it’s Token Program owner like it does for system program

@SvenDowideit
Copy link
Member Author

ah, roger - so the real regression is the unable to find account 👍

SvenDowideit added a commit that referenced this issue Jul 14, 2022
… rpic endpoint either - for #207

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
SvenDowideit added a commit that referenced this issue Jul 15, 2022
* yes, I think this is less code :)

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>

* move the react-query query function to getAccountss.ts

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>

* WIP - i get a blank electron, no dev-tools, and no errors in the console :(

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>

* WIP - i get a blank electron, no dev-tools, and no errors in the console :(

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>

* why do I keep having to fix this?

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>

* and now it works - useQuery for tokenlinst

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>

* token metadata react-query

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>

* use react-query for top level AccountView getParsedAccount request

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>

* how does it look when we have a useParsedAccount(net, pubKey) hook?

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>

* invalidate the react-query cache on demand, and on mint - but ... it needs a tiny delay :/

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>

* replace useInterval with useQuery - not perfect, but not spamming the rpic endpoint either - for #207

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>

* linties

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>

* ok, weird fix, but letting the mint info retry seems to make the Mint accordion work

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>

* sssshhhh those logs

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>

* sssshhhh those logs

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>

* noidea what changed this, remove

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants