-
Notifications
You must be signed in to change notification settings - Fork 2.3k
remove solana-program from token-group-interface #7430
remove solana-program from token-group-interface #7430
Conversation
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 good, but let's finish the job!
token-group/interface/src/state.rs
Outdated
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.
Is there a reason that you didn't update the usage of solana_program
at the top of this file?
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.
nope just missed it
token-group/interface/Cargo.toml
Outdated
num-traits = "0.2" | ||
solana-decode-error = "2.1.0" | ||
solana-instruction = "2.1.0" | ||
solana-msg = "2.1.0" | ||
solana-program = "2.1.0" |
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.
It looks the only usage of solana-program can be removed from state.rs, see my other comment
CI error is being fixed in #7432 |
#[repr(u32)] | ||
#[derive(Clone, Debug, Eq, thiserror::Error, num_derive::FromPrimitive, PartialEq)] |
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.
Why not just update the macro?
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.
I tried, but that macro is quite tied to the assumption that there is a single solana_program crate that we import, and I didn't find a way to update it without breaking everything
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.
This is my fault, remember #7112?
Updated imports and replace spl_program_error usage with inline impls