diff --git a/app/ante/eth.go b/app/ante/eth.go index c8501690..2ae2622b 100644 --- a/app/ante/eth.go +++ b/app/ante/eth.go @@ -125,7 +125,7 @@ func (avd EthAccountVerificationDecorator) AnteHandle( // check whether the sender address is EOA fromAddr := common.BytesToAddress(from) - acct := avd.evmKeeper.GetAccount(ctx, fromAddr) + acct := avd.evmKeeper.GetAccount(ctx, fromAddr) //nolint: all if acct == nil { acc := avd.ak.NewAccountWithAddress(ctx, from) diff --git a/app/app.go b/app/app.go index 14957358..ce0caca0 100644 --- a/app/app.go +++ b/app/app.go @@ -1,3 +1,4 @@ +//nolint: all package app import ( diff --git a/types/account.go b/types/account.go index 08c51279..685e4535 100644 --- a/types/account.go +++ b/types/account.go @@ -11,10 +11,10 @@ import ( ) var ( - _ authtypes.AccountI = (*EthAccount)(nil) - _ EthAccountI = (*EthAccount)(nil) - _ authtypes.GenesisAccount = (*EthAccount)(nil) - _ codectypes.UnpackInterfacesMessage = (*EthAccount)(nil) + _ authtypes.AccountI = (*EthAccount)(nil) //nolint: all + _ EthAccountI = (*EthAccount)(nil) //nolint: all + _ authtypes.GenesisAccount = (*EthAccount)(nil) //nolint: all + _ codectypes.UnpackInterfacesMessage = (*EthAccount)(nil) //nolint: all ) var emptyCodeHash = crypto.Keccak256(nil) diff --git a/x/evm/keeper/keeper.go b/x/evm/keeper/keeper.go index 09a521fe..e287836c 100644 --- a/x/evm/keeper/keeper.go +++ b/x/evm/keeper/keeper.go @@ -227,7 +227,7 @@ func (k Keeper) GetAccountStorage(ctx sdk.Context, address common.Address) types // SetHooks sets the hooks for the EVM module // It should be called only once during initialization, it panic if called more than once. func (k *Keeper) SetHooks(eh types.EvmHooks) *Keeper { - if k.hooks != nil { + if k.hooks != types.EvmHooks(nil) { panic("cannot set evm hooks twice") } @@ -237,7 +237,7 @@ func (k *Keeper) SetHooks(eh types.EvmHooks) *Keeper { // PostTxProcessing delegate the call to the hooks. If no hook has been registered, this function returns with a `nil` error func (k *Keeper) PostTxProcessing(ctx sdk.Context, msg core.Message, receipt *ethtypes.Receipt) error { - if k.hooks == nil { + if k.hooks == types.EvmHooks(nil) { return nil } return k.hooks.PostTxProcessing(ctx, msg, receipt)