Fix eternalities tests can_create (missing parameter) (#9270)
This commit is contained in:
parent
c22498066b
commit
f442665c46
@ -592,7 +592,7 @@ mod tests {
|
|||||||
let mut vm_tracer = NoopVMTracer;
|
let mut vm_tracer = NoopVMTracer;
|
||||||
|
|
||||||
let address = {
|
let address = {
|
||||||
let mut ext = Externalities::new(state, &setup.env_info, &setup.machine, 0, get_test_origin(), &mut setup.sub_state, OutputPolicy::InitContract(None), &mut tracer, &mut vm_tracer, false);
|
let mut ext = Externalities::new(state, &setup.env_info, &setup.machine, &setup.schedule, 0, get_test_origin(), &mut setup.sub_state, OutputPolicy::InitContract(None), &mut tracer, &mut vm_tracer, false);
|
||||||
match ext.create(&U256::max_value(), &U256::zero(), &[], CreateContractAddress::FromSenderAndNonce) {
|
match ext.create(&U256::max_value(), &U256::zero(), &[], CreateContractAddress::FromSenderAndNonce) {
|
||||||
ContractCreateResult::Created(address, _) => address,
|
ContractCreateResult::Created(address, _) => address,
|
||||||
_ => panic!("Test create failed; expected Created, got Failed/Reverted."),
|
_ => panic!("Test create failed; expected Created, got Failed/Reverted."),
|
||||||
@ -612,7 +612,8 @@ mod tests {
|
|||||||
let mut vm_tracer = NoopVMTracer;
|
let mut vm_tracer = NoopVMTracer;
|
||||||
|
|
||||||
let address = {
|
let address = {
|
||||||
let mut ext = Externalities::new(state, &setup.env_info, &setup.machine, 0, get_test_origin(), &mut setup.sub_state, OutputPolicy::InitContract(None), &mut tracer, &mut vm_tracer, false);
|
let mut ext = Externalities::new(state, &setup.env_info, &setup.machine, &setup.schedule, 0, get_test_origin(), &mut setup.sub_state, OutputPolicy::InitContract(None), &mut tracer, &mut vm_tracer, false);
|
||||||
|
|
||||||
match ext.create(&U256::max_value(), &U256::zero(), &[], CreateContractAddress::FromSenderSaltAndCodeHash(H256::default())) {
|
match ext.create(&U256::max_value(), &U256::zero(), &[], CreateContractAddress::FromSenderSaltAndCodeHash(H256::default())) {
|
||||||
ContractCreateResult::Created(address, _) => address,
|
ContractCreateResult::Created(address, _) => address,
|
||||||
_ => panic!("Test create failed; expected Created, got Failed/Reverted."),
|
_ => panic!("Test create failed; expected Created, got Failed/Reverted."),
|
||||||
|
Loading…
Reference in New Issue
Block a user