-
Notifications
You must be signed in to change notification settings - Fork 5
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
Conversation
@@ -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; |
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.
@xermicus I am not sure this, can I assume if ir_optimized is set, the legacyassembly as ir is not needed?
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.
ir-optimized is just another output option. They are two different things.
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.
OK, removed
crates/solidity/src/solc/standard_json/output/contract/evm/mod.rs
Outdated
Show resolved
Hide resolved
crates/solidity/src/solc/standard_json/output/contract/evm/mod.rs
Outdated
Show resolved
Hide resolved
Co-authored-by: Cyrill Leutwiler <[email protected]>
Co-authored-by: Cyrill Leutwiler <[email protected]>
Related to #39
Sync
evm.deployedBytecode
withevm.bytecode
Add evm.assembly flag support