Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
use state discrims not instructions!
Browse files Browse the repository at this point in the history
  • Loading branch information
buffalojoec committed Jan 5, 2024
1 parent 6b34975 commit 93ec835
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions token-group/interface/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ type OptionalNonZeroPubkey = Pubkey; // if all zeroes, interpreted as `None`
type PodU32 = [u8; 4];
type Pubkey = [u8; 32];

/// Type discriminant: [121, 113, 108, 39, 54, 51, 0, 4]
/// First 8 bytes of "spl_token_group_interface:initialize_token_group"
/// Type discriminant: [214, 15, 63, 132, 49, 119, 209, 40]
/// First 8 bytes of `hash("spl_token_group_interface:group")`
pub struct TokenGroup {
/// The authority that can sign to update the group
pub update_authority: OptionalNonZeroPubkey,
Expand All @@ -116,8 +116,8 @@ pub struct TokenGroup {
For a group member:

```rust
/// Type discriminant: [152, 32, 222, 176, 223, 237, 116, 134]
/// First 8 bytes of "spl_token_group_interface:initialize_member"
/// Type discriminant: [254, 50, 168, 134, 88, 126, 100, 186]
/// First 8 bytes of `hash("spl_token_group_interface:member")`
pub struct TokenGroupMember {
/// The associated mint, used to counter spoofing to be sure that member
/// belongs to a particular mint
Expand Down

0 comments on commit 93ec835

Please sign in to comment.