diff --git a/ethexe/cli/src/tests.rs b/ethexe/cli/src/tests.rs index 5b2bd48d240..14d88497412 100644 --- a/ethexe/cli/src/tests.rs +++ b/ethexe/cli/src/tests.rs @@ -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>>, _anvil: Option, _events_stream: JoinHandle<()>, @@ -780,9 +781,13 @@ mod utils { #[derive(Default)] pub struct NodeConfig { + /// Database, if not provided, will be created with MemDb. pub db: Option, + /// Sequencer public key, if provided then new node starts as sequencer. pub sequencer_public_key: Option, + /// Validator public key, if provided then new node starts as validator. pub validator_public_key: Option, + /// Network configuration, if provided then new node starts with network. pub network: Option, } @@ -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, + /// Network bootstrap address, if not provided, then no bootstrap address will be used. pub bootstrap_address: Option, } @@ -882,6 +889,7 @@ mod utils { } } + /// Provides access to hardcoded anvil wallets. pub struct AnvilWallets { wallets: Vec, next_wallet: usize, diff --git a/ethexe/ethereum/src/router/mod.rs b/ethexe/ethereum/src/router/mod.rs index 14f3650e134..a4b1b8d19ea 100644 --- a/ethexe/ethereum/src/router/mod.rs +++ b/ethexe/ethereum/src/router/mod.rs @@ -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::(log)?;