Skip to content

Commit

Permalink
Improve error handling on broadcastTx in e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
skosito committed Apr 18, 2024
1 parent 033475e commit 859dbfb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions e2e/txserver/zeta_tx_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,7 @@ func broadcastWithBlockTimeout(zts ZetaTxServer, txBytes []byte) (*sdktypes.TxRe
case <-time.After(time.Millisecond * 100):
resTx, err := zts.clientCtx.Client.Tx(context.TODO(), hash, false)
if err == nil {
txRes, err := mkTxResult(zts.clientCtx, resTx)
if err == nil {
return txRes, nil
}
return mkTxResult(zts.clientCtx, resTx)
}
}
}
Expand Down

0 comments on commit 859dbfb

Please sign in to comment.