Skip to content
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

Conversation

robertohuertasm
Copy link
Contributor

@robertohuertasm robertohuertasm commented Oct 20, 2024

Adds a processing instructions example using the Steel framework containing both Bankrun tests and Rust tests.

Updated to steel 2.1

@heyAyushh heyAyushh added contribute:steel Adds program example using steel framework. processing-instructions basics/processing-instructions labels Nov 5, 2024
@robertohuertasm robertohuertasm force-pushed the roberto.huertas/feat/processing-instructions-steel branch from deee78e to f2182f1 Compare November 23, 2024 12:17

#[repr(C)]
#[derive(Clone, Copy, Debug, Pod, Zeroable, PartialEq)]
pub struct GoToTheParkData {
Copy link
Member

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

Copy link
Contributor Author

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)?;
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@robertohuertasm robertohuertasm force-pushed the roberto.huertas/feat/processing-instructions-steel branch from b9eb9bf to 8a4f144 Compare December 1, 2024 22:02
@robertohuertasm
Copy link
Contributor Author

@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.

@heyAyushh heyAyushh merged commit da2163d into solana-developers:main Jan 2, 2025
@robertohuertasm robertohuertasm deleted the roberto.huertas/feat/processing-instructions-steel branch January 2, 2025 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribute:steel Adds program example using steel framework. processing-instructions basics/processing-instructions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants