Skip to content

Commit

Permalink
[TxnManager] Make pk wallet compatible with broadcast check (#626)
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-shim authored Jul 8, 2024
1 parent 745e108 commit 2fd1ef9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion disperser/batcher/txn_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func (t *txnManager) ensureAnyTransactionBroadcasted(ctx context.Context, txs []
for {
for _, tx := range txs {
_, err := t.wallet.GetTransactionReceipt(ctx, tx.TxID)
if err == nil || errors.Is(err, walletsdk.ErrReceiptNotYetAvailable) {
if err == nil || errors.Is(err, ethereum.NotFound) || errors.Is(err, walletsdk.ErrReceiptNotYetAvailable) {
t.metrics.ObserveLatency("broadcasted", float64(time.Since(tx.requestedAt).Milliseconds()))
return nil
}
Expand Down

0 comments on commit 2fd1ef9

Please sign in to comment.