Skip to content

Commit

Permalink
enable windows
Browse files Browse the repository at this point in the history
  • Loading branch information
leejw51crypto committed Mar 15, 2021
1 parent da4d23a commit b2ea4b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/chain-maind/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"encoding/json"
"fmt"
"io"
"io/ioutil"
"os"
"path/filepath"

Expand Down Expand Up @@ -38,7 +39,6 @@ import (
"github.com/crypto-org-chain/chain-main/v1/app/params"
"github.com/crypto-org-chain/chain-main/v1/config"
chainmaincli "github.com/crypto-org-chain/chain-main/v1/x/chainmain/client/cli"
"github.com/google/renameio"
)

// NewRootCmd creates a new root command for chain-maind. It is called once in the
Expand Down Expand Up @@ -157,7 +157,7 @@ func initRootCmd(rootCmd *cobra.Command, encodingConfig params.EncodingConfig) {
return err
}

return renameio.WriteFile(cleanedPath, bz, 0600)
return ioutil.WriteFile(cleanedPath, bz, 0600)
}

rootCmd.AddCommand(
Expand Down

0 comments on commit b2ea4b4

Please sign in to comment.