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

invalid account discriminator on chrome #2788

Closed
effeaucarre opened this issue Jan 24, 2024 · 2 comments
Closed

invalid account discriminator on chrome #2788

effeaucarre opened this issue Jan 24, 2024 · 2 comments
Labels
bug Something isn't working ts

Comments

@effeaucarre
Copy link

very probably related to #2619

i'm using program.account.xyz.fetch(pdaAddress) but i have the error wrong account discriminator

i'm using anchor 0.29 , and also tried with 0.28.1-beta.2, problem persist.
if i run the exact same code on ubuntu ts script, i have no problem, it runs perfectly.

Anything about this ?

@acheroncrypto
Copy link
Collaborator

We use a different package for sha256 so it should be fine on 0.29. I haven't seen anybody else run into this problem after we fixed it in #2580.

@acheroncrypto acheroncrypto mentioned this issue Feb 25, 2024
@acheroncrypto acheroncrypto added the bug Something isn't working label Mar 10, 2024
@acheroncrypto
Copy link
Collaborator

TS package no longer calculates the discriminator since the new IDL spec requires discriminator field. For this reason, casing or browser issues should not result in invalid discriminators anymore.

Fixed by #2824.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ts
Projects
None yet
Development

No branches or pull requests

2 participants