Commit 806b08f8 authored by Mark Tyneway's avatar Mark Tyneway Committed by Kelvin Fichter

gas-oracle: fix linting errors

parent 8ed61314
......@@ -42,6 +42,9 @@ func wrapUpdateBaseFee(l1Backend bind.ContractTransactor, l2Backend DeployContra
baseFee, err := contract.L1BaseFee(&bind.CallOpts{
Context: context.Background(),
})
if err != nil {
return err
}
tip, err := l1Backend.HeaderByNumber(context.Background(), nil)
if err != nil {
return err
......
......@@ -315,10 +315,10 @@ func ensureConnection(client *ethclient.Client) error {
for ; true; <-t.C {
_, err := client.ChainID(context.Background())
if err == nil {
t.Stop()
break
} else {
return err
}
return err
}
return nil
}
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