Skip to content
This repository has been archived by the owner on Jul 13, 2022. It is now read-only.

Commit

Permalink
tiny fix adding an unlock on fetching gas price failure (#665)
Browse files Browse the repository at this point in the history
  • Loading branch information
vezenovm authored Jul 8, 2021
1 parent f1f1a15 commit f0ed761
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions connections/ethereum/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ func (c *Connection) LockAndUpdateOpts() error {

gasPrice, err := c.SafeEstimateGas(context.TODO())
if err != nil {
c.optsLock.Unlock()
return err
}
c.opts.GasPrice = gasPrice
Expand Down

0 comments on commit f0ed761

Please sign in to comment.