From 9664b1655fa84495467d3da6cfb1879d8d7f8ad0 Mon Sep 17 00:00:00 2001 From: jeevan-sid Date: Mon, 16 Feb 2026 19:16:36 +0530 Subject: [PATCH] fix: broken tests --- internal/ethapi/api_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/internal/ethapi/api_test.go b/internal/ethapi/api_test.go index 837df8b662..6d55e2c44b 100644 --- a/internal/ethapi/api_test.go +++ b/internal/ethapi/api_test.go @@ -709,6 +709,14 @@ func (b testBackend) HistoryPruningCutoff() uint64 { return bn } +// GetTransactionHashBySenderAndNonce implements the Backend interface for testing. +func (b *testBackend) GetTransactionBySenderAndNonce(ctx context.Context, sender common.Address, nonce uint64) (*common.Hash, error) { + // Todo(shadow): to implement for txn pending in mempool after implementing other pending + // mempool functionality like GetPoolTransactions + hash := rawdb.ReadTxSenderNonceEntry(b.db, sender, nonce) + return hash, nil +} + func TestEstimateGas(t *testing.T) { t.Parallel() // Initialize test accounts