From b937cfef3af1bf6b9349c4020f9c7bafe5a4b75a Mon Sep 17 00:00:00 2001 From: MariusVanDerWijden Date: Thu, 2 Jul 2026 12:06:25 +0200 Subject: [PATCH] core/txpool: fix test --- core/txpool/blobpool/limbo_test.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/txpool/blobpool/limbo_test.go b/core/txpool/blobpool/limbo_test.go index 722587b5c1..6c0154f13c 100644 --- a/core/txpool/blobpool/limbo_test.go +++ b/core/txpool/blobpool/limbo_test.go @@ -55,7 +55,7 @@ func TestLimboLegacyMigration(t *testing.T) { store.Close() // Open the limbo, which should migrate the legacy entry. - l, err := newLimbo(new(params.ChainConfig), dir) + l, _, err := newLimbo(new(params.ChainConfig), dir) if err != nil { t.Fatalf("failed to open limbo: %v", err) } @@ -66,7 +66,11 @@ func TestLimboLegacyMigration(t *testing.T) { if err != nil { t.Fatalf("failed to pull migrated tx: %v", err) } - if got := ptx.ToTx().Hash(); got != tx.Hash() { + ptxTx, err := ptx.toTx() + if err != nil { + t.Fatal(err) + } + if got := ptxTx.Hash(); got != tx.Hash() { t.Fatalf("migrated tx hash mismatch: got %x, want %x", got, tx.Hash()) } }