mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
formatting
This commit is contained in:
parent
4a93fe9612
commit
810397f56d
2 changed files with 7 additions and 2 deletions
|
|
@ -924,7 +924,6 @@ func opReturnContract(pc *uint64, interpreter *EVMInterpreter, scope *ScopeConte
|
||||||
}
|
}
|
||||||
ret := scope.Memory.GetPtr(offset.Uint64(), size.Uint64())
|
ret := scope.Memory.GetPtr(offset.Uint64(), size.Uint64())
|
||||||
containerCode := scope.Contract.Container.ContainerCode[idx]
|
containerCode := scope.Contract.Container.ContainerCode[idx]
|
||||||
//deployedCode := append(containerCode, ret...)
|
|
||||||
if len(containerCode) == 0 {
|
if len(containerCode) == 0 {
|
||||||
return nil, errors.New("nonexistant subcontainer")
|
return nil, errors.New("nonexistant subcontainer")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -180,7 +180,13 @@ func Create(input []byte, cfg *Config) ([]byte, common.Address, uint64, error) {
|
||||||
// - reset transient storage(eip 1153)
|
// - reset transient storage(eip 1153)
|
||||||
cfg.State.Prepare(rules, cfg.Origin, cfg.Coinbase, nil, vm.ActivePrecompiles(rules), nil)
|
cfg.State.Prepare(rules, cfg.Origin, cfg.Coinbase, nil, vm.ActivePrecompiles(rules), nil)
|
||||||
// Call the code with the given configuration.
|
// Call the code with the given configuration.
|
||||||
code, address, leftOverGas, err := vmenv.Create(sender, input, cfg.GasLimit, uint256.MustFromBig(cfg.Value), false)
|
code, address, leftOverGas, err := vmenv.Create(
|
||||||
|
sender,
|
||||||
|
input,
|
||||||
|
cfg.GasLimit,
|
||||||
|
uint256.MustFromBig(cfg.Value),
|
||||||
|
false,
|
||||||
|
)
|
||||||
return code, address, leftOverGas, err
|
return code, address, leftOverGas, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue