-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat: add instructions for token and system program #12
base: main
Are you sure you want to change the base?
feat: add instructions for token and system program #12
Conversation
You can find a work here: https://github.com/Aursen/nostdinfo-programs |
|
||
use crate::ProgramResult; | ||
|
||
pub fn invoke_signed( |
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.
Calling this method invoke signed is a bit misleading
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.
how so? can you elaborate more ser
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.
For example, in the verified call, we check whether the metas accounts agree with the accounts in the instruction. Since .to_metas-C is account-based, I don't know if it's accurate in this context @cavemanloverboy any ideas?
It may be a good idea to optimize the array assignment like pinocchio |
@@ -1,5 +1,5 @@ | |||
[workspace] | |||
members = ["solana-nostd-entrypoint", "example-program"] | |||
members = ["solana-nostd-entrypoint", "example-program", "system", "token"] |
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.
Maybe here organize to use the crates
folder and the examples
I used this internally and thought it might be helpful for anyone using nostd-entrypoint, I've yet to finish the other instructions - wanted to check If it might be worth supporting.
Most of it is from @febo 's Pinocchio token and system program so thank you for that, was really helpful :D