Remove TxBuilder references to viper. (#6653)

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
This commit is contained in:
Jonathan Gimeno
2020-07-10 11:05:35 +02:00
committed by GitHub
co-authored by Alexander Bezobchuk Federico Kunze Alessio Treglia
parent 255ed06eb4
commit 6ceedc9e4f
6 changed files with 24 additions and 38 deletions
-6
View File
@@ -83,12 +83,6 @@ func NewContextWithFrom(from string) Context {
// command line using Viper.
func NewContext() Context { return NewContextWithFrom(viper.GetString(flags.FlagFrom)) }
// NewContextWithInput returns a new initialized Context with a io.Reader and parameters
// from the command line using Viper.
func NewContextWithInput(input io.Reader) Context {
return NewContextWithInputAndFrom(input, viper.GetString(flags.FlagFrom))
}
// InitWithInputAndFrom returns a new Context re-initialized from an existing
// Context with a new io.Reader and from parameter
func (ctx Context) InitWithInputAndFrom(input io.Reader, from string) Context {