fix: broken tests

This commit is contained in:
jeevan-sid 2026-02-16 19:16:36 +05:30
parent 58fad516dc
commit 9664b1655f

View file

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