Skip to content

IRISHUB-329: finish the parameterChangeProposal by param.json#261

Merged
wukongcheng merged 5 commits intoirisnet:feature/govfrom
MrXJC:jiacheng/gov
Sep 19, 2018
Merged

IRISHUB-329: finish the parameterChangeProposal by param.json#261
wukongcheng merged 5 commits intoirisnet:feature/govfrom
MrXJC:jiacheng/gov

Conversation

@MrXJC
Copy link
Contributor

@MrXJC MrXJC commented Sep 19, 2018

No description provided.

} else {
return param, err
}
} else {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (from cli)
else if pathStr != "" (from file)
else (report error)

case "Gov/gov/depositProcedure":
jsonBytes,_ = json.Marshal(paramDoc.Govparams.DepositProcedure)
valueStr = string(jsonBytes)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about the default case ?


err = cmn.WriteFile(homeStr+"/config/params.json", output, 0644)
pathStr := viper.GetString(flagPath)
pathStr = path.Join(os.ExpandEnv("$HOME"),pathStr,"config/params.json")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove Join $HOME

@wukongcheng wukongcheng merged commit 96ac70a into irisnet:feature/gov Sep 19, 2018
wangjiulian pushed a commit that referenced this pull request Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants