formatting

This commit is contained in:
Danno Ferrin 2024-09-13 21:38:35 -06:00
parent 4a93fe9612
commit 810397f56d
2 changed files with 7 additions and 2 deletions

View file

@ -924,7 +924,6 @@ func opReturnContract(pc *uint64, interpreter *EVMInterpreter, scope *ScopeConte
}
ret := scope.Memory.GetPtr(offset.Uint64(), size.Uint64())
containerCode := scope.Contract.Container.ContainerCode[idx]
//deployedCode := append(containerCode, ret...)
if len(containerCode) == 0 {
return nil, errors.New("nonexistant subcontainer")
}

View file

@ -180,7 +180,13 @@ func Create(input []byte, cfg *Config) ([]byte, common.Address, uint64, error) {
// - reset transient storage(eip 1153)
cfg.State.Prepare(rules, cfg.Origin, cfg.Coinbase, nil, vm.ActivePrecompiles(rules), nil)
// 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
}