Skip to content

Commit

Permalink
feat: Use yaml format instead of json
Browse files Browse the repository at this point in the history
  • Loading branch information
red-0ne committed Nov 14, 2023
1 parent 6a8e127 commit beaf093
Show file tree
Hide file tree
Showing 2 changed files with 115 additions and 199 deletions.
4 changes: 2 additions & 2 deletions x/supplier/client/cli/stake_options_reader.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package cli

import (
"encoding/json"
"fmt"
"net/url"
"os"

sdk "github.com/cosmos/cosmos-sdk/types"
"gopkg.in/yaml.v2"

sharedtypes "github.com/pokt-network/poktroll/x/shared/types"
)
Expand Down Expand Up @@ -46,7 +46,7 @@ func parseStakeConfig(configFile string) (*ParsedStakeConfig, error) {

// Unmarshal the stake config file into a stakeConfig
var stakeConfig *StakeConfig
if err := json.Unmarshal(configContent, &stakeConfig); err != nil {
if err := yaml.Unmarshal(configContent, &stakeConfig); err != nil {
return nil, err
}

Expand Down
Loading

0 comments on commit beaf093

Please sign in to comment.