Skip to content

Commit

Permalink
fix lint ioutils
Browse files Browse the repository at this point in the history
  • Loading branch information
whonion committed Jun 20, 2023
1 parent 942d55e commit e16ffd8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"context"
"encoding/hex"
"fmt"
"io/ioutil"
"log"
"math/big"
"os"
Expand Down Expand Up @@ -51,7 +50,7 @@ func main() {
log.Fatal(err)
}
// Load and deploy each contract in succession
contractFiles, err := ioutil.ReadDir("./contracts")
contractFiles, err := os.ReadDir("./contracts")
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -89,14 +88,14 @@ func main() {

//Get the bytecode and ABI from the compiled contract
bytecodeFile := filepath.Join(binDir, binFilename)
bytecodeBytes, err := ioutil.ReadFile(bytecodeFile)
bytecodeBytes, err := os.ReadFile(bytecodeFile)
if err != nil {
log.Fatal(err)
}
bytecodeStr := string(bytecodeBytes)
constructorBytes, err := hex.DecodeString(bytecodeStr[:len(bytecodeStr)-68])
abiFile := filepath.Join(binDir, abiFilename)
abiBytes, err := ioutil.ReadFile(abiFile)
abiBytes, err := os.ReadFile(abiFile)
if err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit e16ffd8

Please sign in to comment.