Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
grishasobol committed Sep 3, 2024
1 parent 91ceb73 commit 5f53a63
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 8 additions & 0 deletions ethexe/cli/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,7 @@ mod utils {
pub block_time: Duration,

network_addresses_nonce: u64,
/// In order to reduce amount of observers, we create only one observer and broadcast events to all subscribers.
broadcaster: Arc<Mutex<Sender<Event>>>,
_anvil: Option<AnvilInstance>,
_events_stream: JoinHandle<()>,
Expand Down Expand Up @@ -780,9 +781,13 @@ mod utils {

#[derive(Default)]
pub struct NodeConfig {
/// Database, if not provided, will be created with MemDb.
pub db: Option<Database>,
/// Sequencer public key, if provided then new node starts as sequencer.
pub sequencer_public_key: Option<ethexe_signer::PublicKey>,
/// Validator public key, if provided then new node starts as validator.
pub validator_public_key: Option<ethexe_signer::PublicKey>,
/// Network configuration, if provided then new node starts with network.
pub network: Option<NodeNetworkConfig>,
}

Expand Down Expand Up @@ -817,7 +822,9 @@ mod utils {

#[derive(Default)]
pub struct NodeNetworkConfig {
/// Network address, if not provided, will be generated by test env.
pub address: Option<String>,
/// Network bootstrap address, if not provided, then no bootstrap address will be used.
pub bootstrap_address: Option<String>,
}

Expand Down Expand Up @@ -882,6 +889,7 @@ mod utils {
}
}

/// Provides access to hardcoded anvil wallets.
pub struct AnvilWallets {
wallets: Vec<ethexe_signer::PublicKey>,
next_wallet: usize,
Expand Down
1 change: 0 additions & 1 deletion ethexe/ethereum/src/router/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ impl Router {
let tx_hash = (*receipt.transaction_hash).into();
let mut actor_id = None;

// TODO: return init message id
for log in receipt.inner.logs() {
if log.topic0().map(|v| v.0) == Some(signatures::PROGRAM_CREATED.to_fixed_bytes()) {
let event = crate::decode_log::<IRouter::ProgramCreated>(log)?;
Expand Down

0 comments on commit 5f53a63

Please sign in to comment.