Skip to content

Commit

Permalink
Merge pull request #135 from NethermindEth/mu/refactor
Browse files Browse the repository at this point in the history
Remove unused #[allow(dead_code)] attributes
  • Loading branch information
mikhailUshakoff authored Sep 20, 2024
2 parents 1f78e24 + 176e106 commit c2c5bf3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion Node/src/ethereum_l1/consensus_layer.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![allow(dead_code)] // TODO: remove
use crate::utils::types::*;
use anyhow::Error;
use beacon_api_client::{
Expand Down
1 change: 0 additions & 1 deletion Node/src/ethereum_l1/slot_clock.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![allow(dead_code)] // TODO remove for production
use crate::utils::types::*;
use anyhow::Error;
use std::time::{Duration, SystemTime, UNIX_EPOCH};
Expand Down
2 changes: 1 addition & 1 deletion Node/src/node/commit.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![allow(dead_code)] // TODO: remove
use crate::utils::types::*;
use crate::{taiko::l2_tx_lists::RPCReplyL2TxLists, utils::bytes_tools::hash_bytes_with_keccak};
use alloy_rlp::{Encodable, RlpDecodable, RlpEncodable};
Expand Down Expand Up @@ -50,6 +49,7 @@ impl L2TxListsCommit {
Ok(hash_bytes_with_keccak(&buffer.as_slice()))
}

#[allow(dead_code)]
pub fn sign(&self, private_key: &str) -> Result<Signature, Error> {
let secp = Secp256k1::new();
let secret_key = SecretKey::from_slice(&hex::decode(private_key)?)?;
Expand Down

0 comments on commit c2c5bf3

Please sign in to comment.