Skip to content

Commit

Permalink
simplify how EVM config is defined as a ledger parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
saibatizoku committed Nov 23, 2021
1 parent 58d32c1 commit a5f26ef
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions chain-impl-mockchain/src/config.rs
Expand Up @@ -14,7 +14,7 @@ use chain_core::packer::Codec;
use chain_core::property;
use chain_crypto::PublicKey;
#[cfg(feature = "evm")]
use chain_evm::machine::{BlockCoinBase, BlockHash, Config, Environment, Origin};
use chain_evm::machine::{BlockCoinBase, BlockHash, Environment, Origin};
#[cfg(feature = "evm")]
use std::convert::TryInto;
use std::{
Expand Down Expand Up @@ -848,13 +848,6 @@ impl ConfigParamVariant for EvmConfigParams {
}

fn from_payload(payload: &[u8]) -> Result<Self, Error> {
fn check_bool(b: u8) -> Result<bool, Error> {
match b {
0 => Ok(false),
1 => Ok(true),
_ => Err(Error::BoolInvalid),
}
}
let mut rb = ReadBuf::from(payload);

// Read EvmConfig and match hard fork variant
Expand Down

0 comments on commit a5f26ef

Please sign in to comment.