Skip to content

Commit

Permalink
io to os
Browse files Browse the repository at this point in the history
  • Loading branch information
charltonliv authored and evan-gray committed Jun 9, 2024
1 parent 4af9c05 commit aeda7fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wormchain/x/wormhole/client/cli/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,15 @@ func CmdDecodeAddress() *cobra.Command {

func ImportKeyFromFile(filePath string) (*ecdsa.PrivateKey, error) {
priv := ecdsa.PrivateKey{}
bz, err := io.ReadFile(filePath)
bz, err := os.ReadFile(filePath)
if err != nil {
return &priv, err
}
return ImportKeyFromHex(string(bz))
}

func ImportPublicKeyFromFile(filePath string) ([]byte, error) {
hexBz, err := io.ReadFile(filePath)
hexBz, err := os.ReadFile(filePath)
if err != nil {
return []byte{}, err
}
Expand Down

0 comments on commit aeda7fa

Please sign in to comment.