Fix misc compile warnings (#11258)

This commit is contained in:
David
2019-11-14 00:01:21 +01:00
committed by Niklas Adolfsson
parent db1ea1dcd8
commit e194a2c6e3
6 changed files with 15 additions and 6 deletions

View File

@@ -359,30 +359,39 @@ impl Implementation for EthereumBuiltin {
}
#[derive(Debug)]
/// The identity builtin
pub struct Identity;
#[derive(Debug)]
/// The EC Recover builtin
pub struct EcRecover;
#[derive(Debug)]
/// The Sha256 builtin
pub struct Sha256;
#[derive(Debug)]
/// The Ripemd160 builtin
pub struct Ripemd160;
#[derive(Debug)]
/// The Modexp builtin
pub struct Modexp;
#[derive(Debug)]
/// The Bn128Add builtin
pub struct Bn128Add;
#[derive(Debug)]
/// The Bn128Mul builtin
pub struct Bn128Mul;
#[derive(Debug)]
/// The Bn128Pairing builtin
pub struct Bn128Pairing;
#[derive(Debug)]
/// The Blake2F builtin
pub struct Blake2F;
impl Implementation for Identity {

View File

@@ -53,7 +53,7 @@ pub struct TransactionFilter {
contract_address: Address,
transition_block: BlockNumber,
permission_cache: Mutex<LruCache<(H256, Address), u32>>,
contract_version_cache: Mutex<LruCache<(H256), Option<U256>>>
contract_version_cache: Mutex<LruCache<H256, Option<U256>>>
}
impl TransactionFilter {

View File

@@ -1207,7 +1207,7 @@ impl Client {
gas: U256::from(50_000_000),
gas_price: U256::default(),
value: U256::default(),
data: data,
data,
}.fake_sign(from)
}