@@ -949,7 +949,7 @@ func New(
949
949
tmos .Exit (err .Error ())
950
950
}
951
951
952
- ctx := app .BaseApp . NewUncachedContext (true , tmproto.Header {})
952
+ ctx := app .NewUncachedContext (true , tmproto.Header {})
953
953
if err := app .WasmKeeper .InitializePinnedCodes (ctx ); err != nil {
954
954
tmos .Exit (fmt .Sprintf ("failed initialize pinned codes %s" , err ))
955
955
}
@@ -1871,7 +1871,7 @@ func (app *App) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig
1871
1871
1872
1872
// RegisterTxService implements the Application.RegisterTxService method.
1873
1873
func (app * App ) RegisterTxService (clientCtx client.Context ) {
1874
- authtx .RegisterTxService (app .BaseApp . GRPCQueryRouter (), clientCtx , app . BaseApp .Simulate , app .interfaceRegistry )
1874
+ authtx .RegisterTxService (app .GRPCQueryRouter (), clientCtx , app .Simulate , app .interfaceRegistry )
1875
1875
}
1876
1876
1877
1877
func (app * App ) RPCContextProvider (i int64 ) sdk.Context {
@@ -1893,7 +1893,7 @@ func (app *App) RPCContextProvider(i int64) sdk.Context {
1893
1893
1894
1894
// RegisterTendermintService implements the Application.RegisterTendermintService method.
1895
1895
func (app * App ) RegisterTendermintService (clientCtx client.Context ) {
1896
- tmservice .RegisterTendermintService (app .BaseApp . GRPCQueryRouter (), clientCtx , app .interfaceRegistry )
1896
+ tmservice .RegisterTendermintService (app .GRPCQueryRouter (), clientCtx , app .interfaceRegistry )
1897
1897
txConfigProvider := func (height int64 ) client.TxConfig {
1898
1898
if app .ChainID != "pacific-1" {
1899
1899
return app .encodingConfig .TxConfig
@@ -1989,7 +1989,7 @@ func (app *App) checkTotalBlockGas(ctx sdk.Context, txs [][]byte) bool {
1989
1989
gasWanted = feeTx .GetGas ()
1990
1990
}
1991
1991
1992
- if int64 (gasWanted ) < 0 || int64 (totalGas ) > math .MaxInt64 - int64 (gasWanted ) {
1992
+ if int64 (gasWanted ) < 0 || int64 (totalGas ) > math .MaxInt64 - int64 (gasWanted ) { // nolint:gosec
1993
1993
return false
1994
1994
}
1995
1995
@@ -2007,11 +2007,11 @@ func (app *App) checkTotalBlockGas(ctx sdk.Context, txs [][]byte) bool {
2007
2007
totalGas += gasWanted
2008
2008
}
2009
2009
2010
- if totalGasWanted > uint64 (ctx .ConsensusParams ().Block .MaxGasWanted ) {
2010
+ if totalGasWanted > uint64 (ctx .ConsensusParams ().Block .MaxGasWanted ) { //nolint:gosec
2011
2011
return false
2012
2012
}
2013
2013
2014
- if totalGas > uint64 (ctx .ConsensusParams ().Block .MaxGas ) {
2014
+ if totalGas > uint64 (ctx .ConsensusParams ().Block .MaxGas ) { //nolint:gosec
2015
2015
return false
2016
2016
}
2017
2017
}
0 commit comments