mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 21:08:10 -05:00
Replace ioutil with io and os (#10541)
* Replace ioutil with io and os * Fix build errors
This commit is contained in:
committed by
GitHub
parent
982de94428
commit
d2f4a8cc7c
@@ -3,7 +3,6 @@ package main
|
||||
import (
|
||||
"context"
|
||||
"flag"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"os"
|
||||
"path"
|
||||
@@ -224,7 +223,7 @@ func generate2FullEpochState() error {
|
||||
}
|
||||
|
||||
func genesisBeaconState() (state.BeaconState, error) {
|
||||
beaconBytes, err := ioutil.ReadFile(path.Join(*outputDir, benchmark.GenesisFileName))
|
||||
beaconBytes, err := os.ReadFile(path.Join(*outputDir, benchmark.GenesisFileName))
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "cannot read genesis state file")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user