include CREATE and CREATE2 frames

This commit is contained in:
Caner Çıdam 2024-02-16 17:23:18 +03:00
parent 3dfcfc62f6
commit f4382a3d79
1 changed files with 4 additions and 0 deletions

View File

@ -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)