Commit b5cd4b01 authored by felipe's avatar felipe Committed by GitHub

Merge pull request #8490 from ethereum-optimism/felipe/ufm-nil-tx

fix(ufm): gracefully handle failed tx creation
parents c2c69cbd 802e9f28
......@@ -58,7 +58,6 @@ func (p *Provider) RoundTrip(ctx context.Context) {
}
tx, err := p.createTx(ctx, client, nonce)
nonce = tx.Nonce()
if err != nil {
log.Error("cant create tx",
"provider", p.name,
......@@ -66,6 +65,7 @@ func (p *Provider) RoundTrip(ctx context.Context) {
"err", err)
return
}
nonce = tx.Nonce()
signedTx, err := p.sign(ctx, tx)
if err != 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