Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dan moore authored and dan moore committed Nov 20, 2023
1 parent 08c375d commit 7f0d16d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/fund/fund.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"encoding/hex"
"encoding/json"
"fmt"
"io/ioutil"
"io"
"math/big"
"net/http"
"os"
Expand Down Expand Up @@ -70,8 +70,7 @@ func getChainIDFromNode(chainRPC string) (int64, error) {
}
defer resp.Body.Close()

// Read the response body
body, readErr := ioutil.ReadAll(resp.Body)
body, readErr := io.ReadAll(resp.Body) // Replace ioutil.ReadAll with io.ReadAll
if readErr != nil {
return 0, readErr
}
Expand Down

0 comments on commit 7f0d16d

Please sign in to comment.