-
Notifications
You must be signed in to change notification settings - Fork 589
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
Conversation
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>>, |
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.
Can we make this an Arc
? Forge has some shared backend logic that sends AccountInfo
across thread bounds and the Rc
makes it !Send
😄
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.
^+1 we need this
|
||
#[derive(Clone, Debug)] | ||
#[cfg_attr(feature = "with-serde", derive(serde::Serialize, serde::Deserialize))] | ||
pub struct Bytecode { |
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.
Can we get Eq
and PartialEq
?
Related to: #121