fix(ufm): gracefully handle failed tx creation

This commit is contained in:
Felipe Andrade 2023-12-06 18:00:49 -08:00
parent d866a84f63
commit 2ad02172ef

@ -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 {