Commit 802e9f28 authored by Felipe Andrade's avatar Felipe Andrade

fix(ufm): gracefully handle failed tx creation

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