diff --git a/zpay32/fuzz_test.go b/zpay32/fuzz_test.go index bb948c20f..f98af58d4 100644 --- a/zpay32/fuzz_test.go +++ b/zpay32/fuzz_test.go @@ -12,15 +12,7 @@ import ( func FuzzDecode(f *testing.F) { f.Fuzz(func(t *testing.T, data string) { - inv, err := Decode(data, &chaincfg.TestNet3Params) - if err != nil { - return - } - - // Call these functions as a sanity check to make sure the - // invoice is well-formed. - _ = inv.MinFinalCLTVExpiry() - _ = inv.Expiry() + _, _ = Decode(data, &chaincfg.TestNet3Params) }) } @@ -31,11 +23,6 @@ func FuzzEncode(f *testing.F) { return } - // Call these functions as a sanity check to make sure the - // invoice is well-formed. - _ = inv.MinFinalCLTVExpiry() - _ = inv.Expiry() - // Initialize the static key we will be using for this fuzz // test. testPrivKey, _ := btcec.PrivKeyFromBytes(testPrivKeyBytes)