core/vm: fix merge bug

This commit is contained in:
Marius van der Wijden 2025-02-20 21:28:47 +01:00
parent fa2f3f2819
commit a4c40781a8
2 changed files with 1 additions and 2 deletions

View File

@ -30,7 +30,6 @@ func MakeTestContainer(
subContainers []*Container,
data []byte,
dataSize int) Container {
testBytes := make([]byte, 0, 16*1024)
codeSectionOffsets := make([]int, 0, len(codeSections))

View File

@ -343,7 +343,7 @@ func (evm *EVM) DelegateCall(originCaller common.Address, caller common.Address,
return nil, gas, errors.New("extDelegateCall to non-eof contract")
}
// Initialise a new contract and make initialise the delegate values
contract := NewContract(originCaller, caller, nil, gas, evm.jumpDests)
contract := NewContract(originCaller, caller, value, gas, evm.jumpDests)
contract.Container = evm.parseContainer(code)
contract.SetCallCode(evm.resolveCodeHash(addr), code)
ret, err = evm.interpreter.Run(contract, input, false, false)