-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
token 2022: add InitializeGroup
instruction from SPL Token Group interface
#5601
token 2022: add InitializeGroup
instruction from SPL Token Group interface
#5601
Conversation
Current dependencies on/for this PR:
This stack of pull requests is managed by Graphite. |
5b340e5
to
dbd9ef8
Compare
82f3418
to
31ee52e
Compare
dbd9ef8
to
834d4a3
Compare
834d4a3
to
92b33dc
Compare
2c5bf6c
to
c4a0ffa
Compare
92b33dc
to
35b6a07
Compare
c4a0ffa
to
1b7a918
Compare
d942fb4
to
ecba134
Compare
c5d4211
to
260e7b2
Compare
3860a11
to
8080c30
Compare
8080c30
to
17677bf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great for the most part! Just the one bit about realloc, wondering if we can tighten that up some more
aa4c6d4
to
01f924d
Compare
3ee9e63
to
6f83fe0
Compare
01f924d
to
ff6ce5b
Compare
6f83fe0
to
878e601
Compare
ff6ce5b
to
837a1a0
Compare
878e601
to
a29209e
Compare
837a1a0
to
b31b5d0
Compare
318e54b
to
0509e06
Compare
b31b5d0
to
629e2c2
Compare
629e2c2
to
e7fb59c
Compare
e7fb59c
to
3a0de2e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
token/client/src/token.rs
Outdated
} | ||
|
||
/// Initialize token-group on a mint | ||
#[allow(clippy::too_many_arguments)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
micro-nit: I think clippy allows up to 7 args, so this shouldn't be needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What the 🤨
I think I had another arg in here or something. Changed!
if mint_state.get_extension::<V>().is_ok() { | ||
Ok(0) | ||
} else { | ||
let new_account_len = mint_state.try_get_new_account_len::<V>()?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very neat 😎
Pull request has been modified.
This PR adds the
InitializeGroup
instruction to Token2022 - from the SPL Token Group interface.