deps: Update cosmos-sdk to v0.46.1 (#1300)

* Update cosmos-sdk to 0.46.1

* update gomod2nix.toml
This commit is contained in:
yihuang
2022-08-25 08:06:45 +02:00
committed by GitHub
parent 685869a141
commit f9c74e239c
8 changed files with 93 additions and 649 deletions
+4 -1
View File
@@ -157,7 +157,10 @@ func NewBackend(
panic(err)
}
appConf := config.GetConfig(ctx.Viper)
appConf, err := config.GetConfig(ctx.Viper)
if err != nil {
panic(err)
}
algos, _ := clientCtx.Keyring.SupportedAlgorithms()
if !algos.Contains(hd.EthSecp256k1) {
+5 -1
View File
@@ -245,7 +245,11 @@ func (b *Backend) NewMnemonic(uid string, language keyring.Language, hdPath, bip
// NOTE: this function accepts only integers to have the same interface than go-eth
// to use float values, the gas prices must be configured using the configuration file
func (b *Backend) SetGasPrice(gasPrice hexutil.Big) bool {
appConf := config.GetConfig(b.clientCtx.Viper)
appConf, err := config.GetConfig(b.clientCtx.Viper)
if err != nil {
b.logger.Debug("could not get the server config", "error", err.Error())
return false
}
var unit string
minGasPrices := appConf.GetMinGasPrices()