From d97e19edf914f76131269c8171098c26208c2014 Mon Sep 17 00:00:00 2001 From: jinhoonbang Date: Wed, 10 Jan 2024 13:11:08 -0800 Subject: [PATCH] fix linting --- core/scripts/vrfv2/testnet/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/scripts/vrfv2/testnet/main.go b/core/scripts/vrfv2/testnet/main.go index 9abaaf3249d..0e06bd14c59 100644 --- a/core/scripts/vrfv2/testnet/main.go +++ b/core/scripts/vrfv2/testnet/main.go @@ -94,7 +94,7 @@ func main() { defer resp.Body.Close() if resp.StatusCode != http.StatusOK { - panic(fmt.Sprintf("invalid status code: ", resp.StatusCode)) + panic(fmt.Sprintf("invalid status code: %d", resp.StatusCode)) } keyJson, err := io.ReadAll(resp.Body) @@ -128,8 +128,8 @@ func main() { var request *vrf_coordinator_v2.VRFCoordinatorV2RandomWordsRequested for _, log := range logs { - unpacked, err := coordinator.ParseLog(log) - helpers.PanicErr(err) + unpacked, err2 := coordinator.ParseLog(log) + helpers.PanicErr(err2) rwr, ok := unpacked.(*vrf_coordinator_v2.VRFCoordinatorV2RandomWordsRequested) if !ok { // should never happen