Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/service/workers/eth-compatible/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ func (w *Erc20Worker) GetSentTxStatus(hash string, nonce uint64) storage.TxStatu
return storage.TxSentStatusFailed
}

txCount, _ := w.GetTxCountLatest()
txReceipt, err := w.client.TransactionReceipt(context.Background(), common.HexToHash(hash))
if err != nil {
if nonce == 0 {
Expand All @@ -276,7 +277,6 @@ func (w *Erc20Worker) GetSentTxStatus(hash string, nonce uint64) storage.TxStatu
return storage.TxSentStatusNotFound
}

txCount, _ := w.GetTxCountLatest()
if nonce >= txCount {
return storage.TxSentStatusPending
}
Expand Down