Fix some warnings and typos. (#10941)
This commit is contained in:
parent
5de32a70da
commit
1503348782
@ -300,7 +300,7 @@ fn do_json_test_for<H: FnMut(&str, HookType)>(vm_type: &VMType, json_data: &[u8]
|
|||||||
&mut tracer,
|
&mut tracer,
|
||||||
&mut vm_tracer,
|
&mut vm_tracer,
|
||||||
));
|
));
|
||||||
let mut evm = vm_factory.create(params, &schedule, 0).expect("Current tests are all of version 0; factory always return Some; qed");
|
let evm = vm_factory.create(params, &schedule, 0).expect("Current tests are all of version 0; factory always return Some; qed");
|
||||||
let res = evm.exec(&mut ex).ok().expect("TestExt never trap; resume error never happens; qed");
|
let res = evm.exec(&mut ex).ok().expect("TestExt never trap; resume error never happens; qed");
|
||||||
// a return in finalize will not alter callcreates
|
// a return in finalize will not alter callcreates
|
||||||
let callcreates = ex.callcreates.clone();
|
let callcreates = ex.callcreates.clone();
|
||||||
|
@ -96,6 +96,7 @@ extern crate rayon;
|
|||||||
extern crate rlp;
|
extern crate rlp;
|
||||||
extern crate parity_util_mem;
|
extern crate parity_util_mem;
|
||||||
extern crate parity_util_mem as malloc_size_of;
|
extern crate parity_util_mem as malloc_size_of;
|
||||||
|
#[cfg(any(test, feature = "test-helpers"))]
|
||||||
extern crate rustc_hex;
|
extern crate rustc_hex;
|
||||||
extern crate serde;
|
extern crate serde;
|
||||||
extern crate state_db;
|
extern crate state_db;
|
||||||
|
@ -1107,7 +1107,7 @@ impl miner::MinerService for Miner {
|
|||||||
Eq(value) => tx_value == value,
|
Eq(value) => tx_value == value,
|
||||||
GreaterThan(value) => tx_value > value,
|
GreaterThan(value) => tx_value > value,
|
||||||
LessThan(value) => tx_value < value,
|
LessThan(value) => tx_value < value,
|
||||||
// Will always occure on `Any`, other operators
|
// Will always occur on `Any`, other operators
|
||||||
// get handled during deserialization
|
// get handled during deserialization
|
||||||
_ => true,
|
_ => true,
|
||||||
}
|
}
|
||||||
@ -1123,7 +1123,7 @@ impl miner::MinerService for Miner {
|
|||||||
let sender = tx.signed().sender();
|
let sender = tx.signed().sender();
|
||||||
match filter.from {
|
match filter.from {
|
||||||
Eq(value) => sender == value,
|
Eq(value) => sender == value,
|
||||||
// Will always occure on `Any`, other operators
|
// Will always occur on `Any`, other operators
|
||||||
// get handled during deserialization
|
// get handled during deserialization
|
||||||
_ => true,
|
_ => true,
|
||||||
}
|
}
|
||||||
@ -1136,7 +1136,7 @@ impl miner::MinerService for Miner {
|
|||||||
match filter.to {
|
match filter.to {
|
||||||
// Could apply to `Some(Address)` or `None` (for contract creation)
|
// Could apply to `Some(Address)` or `None` (for contract creation)
|
||||||
Eq(value) => receiver == value,
|
Eq(value) => receiver == value,
|
||||||
// Will always occure on `Any`, other operators
|
// Will always occur on `Any`, other operators
|
||||||
// get handled during deserialization
|
// get handled during deserialization
|
||||||
_ => true,
|
_ => true,
|
||||||
}
|
}
|
||||||
|
@ -128,7 +128,7 @@ impl ::std::fmt::Display for Error {
|
|||||||
Error::AllocationFailed => write!(f, "Memory allocation failed (OOM)"),
|
Error::AllocationFailed => write!(f, "Memory allocation failed (OOM)"),
|
||||||
Error::BadUtf8 => write!(f, "String encoding is bad utf-8 sequence"),
|
Error::BadUtf8 => write!(f, "String encoding is bad utf-8 sequence"),
|
||||||
Error::GasLimit => write!(f, "Invocation resulted in gas limit violated"),
|
Error::GasLimit => write!(f, "Invocation resulted in gas limit violated"),
|
||||||
Error::Log => write!(f, "Error occured while logging an event"),
|
Error::Log => write!(f, "Error occurred while logging an event"),
|
||||||
Error::InvalidSyscall => write!(f, "Invalid syscall signature encountered at runtime"),
|
Error::InvalidSyscall => write!(f, "Invalid syscall signature encountered at runtime"),
|
||||||
Error::Other => write!(f, "Other unspecified error"),
|
Error::Other => write!(f, "Other unspecified error"),
|
||||||
Error::Unreachable => write!(f, "Unreachable instruction encountered"),
|
Error::Unreachable => write!(f, "Unreachable instruction encountered"),
|
||||||
|
Loading…
Reference in New Issue
Block a user