From 499b8937282a7066b0d333911b607de1e5789d9f Mon Sep 17 00:00:00 2001 From: mrekucci <4932785+mrekucci@users.noreply.github.com> Date: Tue, 23 Apr 2024 20:07:29 -0500 Subject: [PATCH] fix(bls): precompile.Run call in fuzz function --- tests/fuzzers/bls12381/precompile_fuzzer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/fuzzers/bls12381/precompile_fuzzer.go b/tests/fuzzers/bls12381/precompile_fuzzer.go index 3398a798e15d..f7d7da92f066 100644 --- a/tests/fuzzers/bls12381/precompile_fuzzer.go +++ b/tests/fuzzers/bls12381/precompile_fuzzer.go @@ -19,12 +19,12 @@ package bls import ( "bytes" "fmt" - "github.com/holiman/uint256" "math/big" "time" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/vm" + "github.com/holiman/uint256" ) const ( @@ -111,7 +111,7 @@ func fuzz(id byte, data []byte) int { } cpy := make([]byte, len(data)) copy(cpy, data) - _, err := precompile.Run(cpy, vm.NewContext(common.HexToAddress("1337"), mockEVM)) + _, err := precompile.Run(cpy) if !bytes.Equal(cpy, data) { panic(fmt.Sprintf("input data modified, precompile %d: %x %x", id, data, cpy)) }