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

Remove unused #[allow(dead_code)] attributes #135

Merged
merged 1 commit into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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