Skip to content

Commit f0ed761

Browse files
authored
tiny fix adding an unlock on fetching gas price failure (ChainSafe#665)
1 parent f1f1a15 commit f0ed761

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: connections/ethereum/connection.go

+1
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ func (c *Connection) LockAndUpdateOpts() error {
185185

186186
gasPrice, err := c.SafeEstimateGas(context.TODO())
187187
if err != nil {
188+
c.optsLock.Unlock()
188189
return err
189190
}
190191
c.opts.GasPrice = gasPrice

0 commit comments

Comments
 (0)