chore: make fmt.Errorf use %w to wrap error instead of %v (#20350)
This commit is contained in:
+2
-2
@@ -823,11 +823,11 @@ func testnetify[T types.Application](ctx *Context, testnetAppCreator types.AppCr
|
||||
_, _, _, _, _, proxyMetrics, _, _ := metrics(genDoc.ChainID) // nolint: dogsled // function from comet
|
||||
proxyApp := proxy.NewAppConns(clientCreator, proxyMetrics)
|
||||
if err := proxyApp.Start(); err != nil {
|
||||
return nil, fmt.Errorf("error starting proxy app connections: %v", err)
|
||||
return nil, fmt.Errorf("error starting proxy app connections: %w", err)
|
||||
}
|
||||
res, err := proxyApp.Query().Info(context, proxy.InfoRequest)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error calling Info: %v", err)
|
||||
return nil, fmt.Errorf("error calling Info: %w", err)
|
||||
}
|
||||
err = proxyApp.Stop()
|
||||
if err != nil {
|
||||
|
||||
@@ -3,7 +3,7 @@ package appmanager
|
||||
// Config represents the configuration options for the app manager.
|
||||
// TODO: implement comments for toml
|
||||
type Config struct {
|
||||
ValidateTxGasLimit uint64 `mapstructure:"validate-tx-gas-limit"` //TODO: check how this works on app mempool
|
||||
ValidateTxGasLimit uint64 `mapstructure:"validate-tx-gas-limit"` // TODO: check how this works on app mempool
|
||||
QueryGasLimit uint64 `mapstructure:"query-gas-limit"`
|
||||
SimulationGasLimit uint64 `mapstructure:"simulation-gas-limit"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user