mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
include CREATE and CREATE2 frames
This commit is contained in:
parent
3dfcfc62f6
commit
f4382a3d79
1 changed files with 4 additions and 0 deletions
|
|
@ -468,6 +468,10 @@ func (evm *EVM) create(caller ContractRef, codeAndHash *codeAndHash, gas uint64,
|
||||||
}
|
}
|
||||||
evm.Context.Transfer(evm.StateDB, caller.Address(), address, value)
|
evm.Context.Transfer(evm.StateDB, caller.Address(), address, value)
|
||||||
|
|
||||||
|
// Push the call to the call stack.
|
||||||
|
evm.callStack.Push(typ, address, nil)
|
||||||
|
defer evm.callStack.Pop()
|
||||||
|
|
||||||
// Initialise a new contract and set the code that is to be used by the EVM.
|
// Initialise a new contract and set the code that is to be used by the EVM.
|
||||||
// The contract is a scoped environment for this execution context only.
|
// The contract is a scoped environment for this execution context only.
|
||||||
contract := NewContract(caller, AccountRef(address), value, gas)
|
contract := NewContract(caller, AccountRef(address), value, gas)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue