Commit a8e37aac authored by Mark Tyneway's avatar Mark Tyneway

l2geth: small style fix to the state manager precompile

Updates the style to encapsulate the `err` so that it
doesn't need to reassign `err` and can instead keep
the `err` in its own scope.
parent 09456efe
---
'@eth-optimism/l2geth': patch
---
Style fix to the ovm state manager precompile
......@@ -39,8 +39,7 @@ func callStateManager(input []byte, evm *EVM, contract *Contract) (ret []byte, e
}
var inputArgs = make(map[string]interface{})
err = method.Inputs.UnpackIntoMap(inputArgs, input[4:])
if err != nil {
if err := method.Inputs.UnpackIntoMap(inputArgs, input[4:]); err != nil {
return nil, err
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment