Skip to content

Commit 8d4d126

Browse files
committed
Apply linter fixes
1 parent fb527db commit 8d4d126

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

app/app.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ func NewWasmApp(
447447
authtypes.NewModuleAddress(govtypes.ModuleName).String(),
448448
app.AccountKeeper.AddressCodec(),
449449
)
450-
app.BaseApp.SetCircuitBreaker(&app.CircuitKeeper)
450+
app.SetCircuitBreaker(&app.CircuitKeeper)
451451

452452
app.AuthzKeeper = authzkeeper.NewKeeper(
453453
runtime.NewKVStoreService(keys[authzkeeper.StoreKey]),
@@ -904,7 +904,7 @@ func NewWasmApp(
904904
if err := app.LoadLatestVersion(); err != nil {
905905
panic(fmt.Errorf("error loading last version: %w", err))
906906
}
907-
ctx := app.BaseApp.NewUncachedContext(true, tmproto.Header{})
907+
ctx := app.NewUncachedContext(true, tmproto.Header{})
908908

909909
// Initialize pinned codes in wasmvm as they are not persisted there
910910
if err := app.WasmKeeper.InitializePinnedCodes(ctx); err != nil {
@@ -1099,15 +1099,15 @@ func (app *WasmApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APICo
10991099

11001100
// RegisterTxService implements the Application.RegisterTxService method.
11011101
func (app *WasmApp) RegisterTxService(clientCtx client.Context) {
1102-
authtx.RegisterTxService(app.BaseApp.GRPCQueryRouter(), clientCtx, app.BaseApp.Simulate, app.interfaceRegistry)
1102+
authtx.RegisterTxService(app.GRPCQueryRouter(), clientCtx, app.Simulate, app.interfaceRegistry)
11031103
}
11041104

11051105
// RegisterTendermintService implements the Application.RegisterTendermintService method.
11061106
func (app *WasmApp) RegisterTendermintService(clientCtx client.Context) {
11071107
cmtApp := server.NewCometABCIWrapper(app)
11081108
cmtservice.RegisterTendermintService(
11091109
clientCtx,
1110-
app.BaseApp.GRPCQueryRouter(),
1110+
app.GRPCQueryRouter(),
11111111
app.interfaceRegistry,
11121112
cmtApp.Query,
11131113
)

app/export.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func (app *WasmApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedA
4545
AppState: appState,
4646
Validators: validators,
4747
Height: height,
48-
ConsensusParams: app.BaseApp.GetConsensusParams(ctx),
48+
ConsensusParams: app.GetConsensusParams(ctx),
4949
}, err
5050
}
5151

@@ -54,12 +54,8 @@ func (app *WasmApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedA
5454
//
5555
// in favor of export at a block height
5656
func (app *WasmApp) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []string) {
57-
applyAllowedAddrs := false
58-
5957
// check if there is a allowed address list
60-
if len(jailAllowedAddrs) > 0 {
61-
applyAllowedAddrs = true
62-
}
58+
applyAllowedAddrs := len(jailAllowedAddrs) > 0
6359

6460
allowedAddrsMap := make(map[string]bool)
6561

tests/wasmibctesting/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func (chain *WasmTestChain) CaptureIBCEvents(result *abci.ExecTxResult) {
7575

7676
func (chain *WasmTestChain) OverrideSendMsgs(msgs ...sdk.Msg) (*abci.ExecTxResult, error) {
7777
chain.SendMsgsOverride = nil
78-
result, err := chain.TestChain.SendMsgs(msgs...)
78+
result, err := chain.SendMsgs(msgs...)
7979
chain.SendMsgsOverride = chain.OverrideSendMsgs
8080
chain.CaptureIBCEvents(result)
8181
return result, err

0 commit comments

Comments
 (0)