Skip to content

Commit

Permalink
chore(clippy): make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
clearloop committed Sep 14, 2024
1 parent cbe0833 commit ad77ee8
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions codegen/src/codegen/constructor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,6 @@ use std::collections::HashMap;
pub type InitStorage = HashMap<SmallVec<[u8; 32]>, SmallVec<[u8; 32]>>;

/// Contract constructor.
///
/// # Bytecode
/// - `CREATE` instruction
/// - `INIT_CODE`
/// - `INIT_LOGIC`
/// - `RETURN RUNTIME_BYTECODE`
/// - `RUNTIME_BYTECODE`
///
/// TODO: introduce ABI for constructor
#[derive(Default, Debug, Clone)]
pub struct Constructor {
/// Code generator.
Expand All @@ -41,7 +32,7 @@ impl Constructor {
/// the runtime bytecode.
pub fn finish(&self, runtime_bytecode: Buffer) -> Result<Buffer> {
let init_code = self.masm.buffer();
tracing::trace!("init code: {}", hex::encode(&init_code));
tracing::trace!("init code: {}", hex::encode(init_code));
let init_code_len = init_code.len();
let runtime_bytecode_len = runtime_bytecode.len();
let runtime_bytecode_size = runtime_bytecode_len.to_ls_bytes();
Expand Down

0 comments on commit ad77ee8

Please sign in to comment.