What is the first 8 bytes of the instruction's data ? #2662
Replies: 1 comment 3 replies
-
It's also an 8-byte discriminator! It's calculated like this: anchor/lang/syn/src/codegen/program/dispatch.rs Lines 20 to 26 in 6cf2004 So in other words, it's the first 8 bytes of the string |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In anchor programs, first 8 bytes of the account's data is the discriminator that fine but what is the first 8 bytes of the instruction's data when interaction with the anchor program's instruction ?! how we can compute that ?
Beta Was this translation helpful? Give feedback.
All reactions