[Trace] Distinguish between create and create2 (#11311)
* adding a CreateType to ActionParams * rename calltype to action type * comments & line lengths * rebame ActionParams.call_type * Making call/create type optional * Moving strict create/call type into trace package instead of storing loosely typed action type * fix build * Deriving ActionType from address_scheme in ext.create * trigger build * more detailed comments * Change actions_type to call in vmtests * skipping serialization for Option::None and using TryFrom instead of maybe_new * retrigger build * trigger build
This commit is contained in:
committed by
Andronik Ordian
parent
e95bbe36cb
commit
87e1080581
@@ -20,7 +20,7 @@ use super::test_common::*;
|
||||
use account_state::{Backend as StateBackend, State};
|
||||
use evm::Finalize;
|
||||
use vm::{
|
||||
self, ActionParams, CallType, Schedule, Ext,
|
||||
self, ActionParams, ActionType, Schedule, Ext,
|
||||
ContractCreateResult, EnvInfo, MessageCallResult,
|
||||
CreateContractAddress, ReturnData,
|
||||
};
|
||||
@@ -172,7 +172,7 @@ impl<'a, T: 'a, V: 'a, B: 'a> Ext for TestExt<'a, T, V, B>
|
||||
value: Option<U256>,
|
||||
data: &[u8],
|
||||
_code_address: &Address,
|
||||
_call_type: CallType,
|
||||
_call_type: ActionType,
|
||||
_trap: bool
|
||||
) -> Result<MessageCallResult, vm::TrapKind> {
|
||||
self.callcreates.push(CallCreate {
|
||||
|
||||
Reference in New Issue
Block a user