-
Notifications
You must be signed in to change notification settings - Fork 329
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
Add basics/processing-instructions/steel #166
Add basics/processing-instructions/steel #166
Conversation
deee78e
to
f2182f1
Compare
|
||
#[repr(C)] | ||
#[derive(Clone, Copy, Debug, Pod, Zeroable, PartialEq)] | ||
pub struct GoToTheParkData { |
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.
add to this to instruction.rs
file, use !instruction()
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.
Done! Thanks for the suggestion.
) -> ProgramResult { | ||
msg!("Processing instruction"); | ||
|
||
let instruction = GoToTheParkData::try_from_bytes(instruction_data)?; |
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.
use parse_instruction()
, create instruction in a different file and import it here using mod.
ex. go_to_park.rs
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.
Done!
b9eb9bf
to
8a4f144
Compare
@heyAyushh I've modified the PR according to your suggestions but now the workflows won't run. For some reason GitHub is now asking for your approval to run the workflows. |
Adds a processing instructions example using the Steel framework containing both Bankrun tests and Rust tests.
Updated to steel 2.1