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

feat: Introduce ByteCode format #156

Merged
merged 12 commits into from
Aug 1, 2022
Merged

feat: Introduce ByteCode format #156

merged 12 commits into from
Aug 1, 2022

Conversation

rakita
Copy link
Member

@rakita rakita commented Jul 30, 2022

Related to: #121

pub first_gas_block: u32,
/// Rc is used here so that we dont need to copy vector. We can move it to more suitable more accessable structure
/// without copying underlying vec.
pub analysis: Rc<Vec<AnalysisData>>,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we make this an Arc? Forge has some shared backend logic that sends AccountInfo across thread bounds and the Rc makes it !Send 😄

Copy link
Collaborator

Choose a reason for hiding this comment

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

^+1 we need this


#[derive(Clone, Debug)]
#[cfg_attr(feature = "with-serde", derive(serde::Serialize, serde::Deserialize))]
pub struct Bytecode {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we get Eq and PartialEq?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants