Skip to content

Commit

Permalink
use EVM in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Wollac committed Jan 17, 2024
1 parent da7b212 commit ec8599d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions lib/src/builder/execute/ethereum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ impl TxExecStrategy<EthereumTxEssence> for EthTxExecStrategy {
.unwrap();

info!("Block no. {}", header.number);
info!(" Evm spec ID: {:?}", spec_id);
info!(" EVM spec ID: {:?}", spec_id);
info!(" Timestamp: {}", dt);
info!(" Transactions: {}", block_builder.input.transactions.len());
info!(" Withdrawals: {}", block_builder.input.withdrawals.len());
Expand All @@ -86,12 +86,12 @@ impl TxExecStrategy<EthereumTxEssence> for EthTxExecStrategy {
let mut evm = Evm::builder()
.spec_id(spec_id)
.modify_cfg_env(|cfg_env| {
// set the Evm configuration
// set the EVM configuration
cfg_env.chain_id = block_builder.chain_spec.chain_id();
cfg_env.optimism = false;
})
.modify_block_env(|blk_env| {
// set the Evm block environment
// set the EVM block environment
blk_env.number = header.number.try_into().unwrap();
blk_env.coinbase = block_builder.input.beneficiary;
blk_env.timestamp = header.timestamp;
Expand Down Expand Up @@ -147,7 +147,7 @@ impl TxExecStrategy<EthereumTxEssence> for EthTxExecStrategy {
#[cfg(not(target_os = "zkvm"))]
debug!(" Ok: {:?}", result);

// create the receipt from the Evm result
// create the receipt from the EVM result
let receipt = Receipt::new(
tx.essence.tx_type(),
result.is_success(),
Expand Down
8 changes: 4 additions & 4 deletions lib/src/builder/execute/optimism.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ impl TxExecStrategy<OptimismTxEssence> for OpTxExecStrategy {
.unwrap();

info!("Block no. {}", header.number);
info!(" Evm spec ID: {:?}", spec_id);
info!(" EVM spec ID: {:?}", spec_id);
info!(" Timestamp: {}", dt);
info!(" Transactions: {}", block_builder.input.transactions.len());
info!(" Fee Recipient: {:?}", block_builder.input.beneficiary);
Expand All @@ -86,12 +86,12 @@ impl TxExecStrategy<OptimismTxEssence> for OpTxExecStrategy {
let mut evm = Evm::builder()
.spec_id(spec_id)
.modify_cfg_env(|cfg_env| {
// set the Evm configuration
// set the EVM configuration
cfg_env.chain_id = chain_id;
cfg_env.optimism = true;
})
.modify_block_env(|blk_env| {
// set the Evm block environment
// set the EVM block environment
blk_env.number = header.number.try_into().unwrap();
blk_env.coinbase = block_builder.input.beneficiary;
blk_env.timestamp = header.timestamp;
Expand Down Expand Up @@ -163,7 +163,7 @@ impl TxExecStrategy<OptimismTxEssence> for OpTxExecStrategy {
#[cfg(not(target_os = "zkvm"))]
debug!(" Ok: {:?}", result);

// create the receipt from the Evm result
// create the receipt from the EVM result
let receipt = Receipt::new(
tx.essence.tx_type(),
result.is_success(),
Expand Down

0 comments on commit ec8599d

Please sign in to comment.