From a382cc4067178ea64a8a7ddb588c6f7d5b0af74e Mon Sep 17 00:00:00 2001 From: a Date: Thu, 7 Sep 2023 07:57:30 -0500 Subject: [PATCH] fizz --- types/txn_types_fuzz_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/txn_types_fuzz_test.go b/types/txn_types_fuzz_test.go index 1f43a695d..110498c19 100644 --- a/types/txn_types_fuzz_test.go +++ b/types/txn_types_fuzz_test.go @@ -6,6 +6,7 @@ import ( "testing" "github.com/ledgerwatch/erigon-lib/common/u256" + "github.com/ledgerwatch/erigon-lib/rlp" ) // golang.org/s/draft-fuzzing-design @@ -27,6 +28,6 @@ func FuzzParseTx(f *testing.F) { ctx := NewTxParseContext(*u256.N1) txn := &TxSlot{} sender := make([]byte, 20) - _, _ = ctx.ParseTransaction(in, pos, txn, sender, false /* hasEnvelope */, true /* wrappedWithBlobs */, nil) + ctx.DecodeTransaction(rlp.NewDecoder(in), txn, sender, false /* hasEnvelope */, true /* wrappedWithBlobs */, nil) }) }