Merge PR #3713: Use from instead of name CLI flag for the tx sign cmd

* Use from instead of name CLI flag for the tx sign cmd
* Use cliCtx.GetFromName() instead of direct from value
This commit is contained in:
Alexander Bezobchuk
2019-02-22 17:15:36 +01:00
committed by Christopher Goes
parent b823203839
commit c96d8f3e81
3 changed files with 18 additions and 11 deletions
+1 -1
View File
@@ -290,7 +290,7 @@ func (f *Fixtures) TxSend(from string, to sdk.AccAddress, amount sdk.Coin, flags
// TxSign is gaiacli tx sign
func (f *Fixtures) TxSign(signer, fileName string, flags ...string) (bool, string, string) {
cmd := fmt.Sprintf("gaiacli tx sign %v --name=%s %v", f.Flags(), signer, fileName)
cmd := fmt.Sprintf("gaiacli tx sign %v --from=%s %v", f.Flags(), signer, fileName)
return executeWriteRetStdStreams(f.T, addFlags(cmd, flags), app.DefaultKeyPass)
}