Skip to content

Commit

Permalink
conditional compile, use_l1_block_numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
akshay111meher committed Nov 12, 2024
1 parent 988150b commit 5082696
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions matching_engine/src/utility.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
use ethers::abi::{encode, AbiParser, Address, Token};
use ethers::abi::{encode, Address, Token};

#[cfg(feature = "use_l1_block_numbers")]
use ethers::abi::AbiParser;

use ethers::core::rand::seq::SliceRandom;
use ethers::core::rand::{self, thread_rng};
use ethers::core::utils::hex::FromHex;

#[cfg(feature = "use_l1_block_numbers")]
use ethers::prelude::*;
use ethers::types::{
Address as OtherAddress, Bytes, Signature, SignatureError, TransactionRequest, H160, U256,
};

#[cfg(feature = "use_l1_block_numbers")]
use ethers::types::{Address as OtherAddress, Bytes, TransactionRequest};

use ethers::types::{Signature, SignatureError, H160, U256};

use ethers::utils::keccak256;
use hex::decode;
use im::HashMap;
Expand Down

0 comments on commit 5082696

Please sign in to comment.