Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jinhoonbang committed Jan 10, 2024
1 parent 0f77eca commit d97e19e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/scripts/vrfv2/testnet/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d97e19e

Please sign in to comment.