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

Set evm.deployedBytecode to the value of evm.bytecode #95

Merged
merged 9 commits into from
Oct 24, 2024
Merged

Conversation

smiasojed
Copy link
Collaborator

@smiasojed smiasojed commented Oct 23, 2024

Related to #39
Sync evm.deployedBytecode with evm.bytecode
Add evm.assembly flag support

@@ -139,6 +139,9 @@ impl Contract {
let bytecode = hex::encode(self.build.bytecode.as_slice());
if let Some(evm) = standard_json_contract.evm.as_mut() {
evm.modify(assembly_text, bytecode);
if standard_json_contract.ir_optimized.is_some() {
evm.assembly = None;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@xermicus I am not sure this, can I assume if ir_optimized is set, the legacyassembly as ir is not needed?

Copy link
Member

Choose a reason for hiding this comment

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

ir-optimized is just another output option. They are two different things.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

OK, removed

@xermicus xermicus merged commit cc38c37 into main Oct 24, 2024
2 checks passed
@xermicus xermicus deleted the sm/flags branch October 24, 2024 12:59
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.

2 participants