Skip to content

Commit

Permalink
misc: tidy remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
namn-grg committed Jul 17, 2024
1 parent 5562d81 commit e890b51
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
3 changes: 1 addition & 2 deletions bolt-spammer-helder/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ use alloy::{
sol_types::{Error as SolError, SolInterface},
transports::{http::Http, TransportError},
};
use beacon_api_client::ProposerDuty;
use reqwest::Client;
use url::Url;

use beacon_api_client::ProposerDuty;
use BoltRegistryContract::{BoltRegistryContractErrors, BoltRegistryContractInstance, Registrant};

#[derive(Debug, Clone)]
Expand Down
15 changes: 4 additions & 11 deletions bolt-spammer-helder/src/utils.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// use alloy::alloy_eips::eip2718::Encodable2718;
use std::str::FromStr;

use alloy::{
consensus::{BlobTransactionSidecar, SidecarBuilder, SimpleCoder},
hex,
Expand All @@ -7,12 +8,6 @@ use alloy::{
rpc::types::TransactionRequest,
};
use beacon_api_client::{mainnet::Client as BeaconApiClient, BlockId};
use std::str::FromStr;
// use ethers::{
// signers::Signer,
// types::{transaction::eip2718::TypedTransaction, Eip1559TransactionRequest},
// utils::hex,
// };
use eyre::Result;
use rand::{thread_rng, Rng};
use reth_primitives::TransactionSigned;
Expand All @@ -22,13 +17,11 @@ use crate::constants::{DEAD_ADDRESS, HELDER_TESTNET_CHAIN_ID, NOICE_GAS_PRICE};

/// Generates random ETH transfer to `DEAD_ADDRESS` with a random payload.
pub fn generate_random_tx() -> TransactionRequest {
let tx: TransactionRequest = TransactionRequest::default()
TransactionRequest::default()
.with_to(Address::from_str(DEAD_ADDRESS).unwrap())
.with_chain_id(HELDER_TESTNET_CHAIN_ID)
.with_value(U256::from(thread_rng().gen_range(1..100)))
.with_gas_price(NOICE_GAS_PRICE);

tx
.with_gas_price(NOICE_GAS_PRICE)
}

/// Generate random transaction with blob (eip4844)
Expand Down

0 comments on commit e890b51

Please sign in to comment.