Skip to content

Commit

Permalink
chore: comment formatting
Browse files Browse the repository at this point in the history
Co-authored-by: Nisheeth Barthwal <[email protected]>
  • Loading branch information
Karrq and nbaztec authored Nov 11, 2024
1 parent f3eafa6 commit be64853
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/artifacts/zksolc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,12 @@ impl EraVM {
pub fn bytecode(&self, should_be_unlinked: bool) -> Option<BytecodeObject> {
self.bytecode.as_ref().map(|object| match (should_be_unlinked, object) {
(true, BytecodeObject::Bytecode(bc)) => {
//convert to unlinked
// convert to unlinked
let encoded = alloy_primitives::hex::encode(bc);
BytecodeObject::Unlinked(encoded)
}
(false, BytecodeObject::Unlinked(bc)) => {
//convert to linked
// convert to linked
let bytecode = alloy_primitives::hex::decode(bc).expect("valid bytecode");
BytecodeObject::Bytecode(bytecode.into())
}
Expand Down
4 changes: 2 additions & 2 deletions crates/compilers/src/zksync/artifact_output/zk/bytecode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ impl ZkArtifactBytecode {

pub fn object(&self) -> BytecodeObject {
if self.is_unlinked {
//convert to unlinked
// convert to unlinked
let encoded = alloy_primitives::hex::encode(&self.object);
BytecodeObject::Unlinked(encoded)
} else {
//convert to linked
// convert to linked
BytecodeObject::Bytecode(self.object.clone())
}
}
Expand Down

0 comments on commit be64853

Please sign in to comment.