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 <[email protected]>
SvenDowideit added a commit that referenced this issue Jul 15, 2022
* yes, I think this is less code :)

Signed-off-by: Sven Dowideit <[email protected]>

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

Signed-off-by: Sven Dowideit <[email protected]>

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

Signed-off-by: Sven Dowideit <[email protected]>

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

Signed-off-by: Sven Dowideit <[email protected]>

* why do I keep having to fix this?

Signed-off-by: Sven Dowideit <[email protected]>

* and now it works - useQuery for tokenlinst

Signed-off-by: Sven Dowideit <[email protected]>

* token metadata react-query

Signed-off-by: Sven Dowideit <[email protected]>

* use react-query for top level AccountView getParsedAccount request

Signed-off-by: Sven Dowideit <[email protected]>

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

Signed-off-by: Sven Dowideit <[email protected]>

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

Signed-off-by: Sven Dowideit <[email protected]>

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

Signed-off-by: Sven Dowideit <[email protected]>

* linties

Signed-off-by: Sven Dowideit <[email protected]>

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

Signed-off-by: Sven Dowideit <[email protected]>

* sssshhhh those logs

Signed-off-by: Sven Dowideit <[email protected]>

* sssshhhh those logs

Signed-off-by: Sven Dowideit <[email protected]>

* noidea what changed this, remove

Signed-off-by: Sven Dowideit <[email protected]>
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