Skip to content

Commit

Permalink
Address linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
alpe committed Apr 12, 2022
1 parent 2e56703 commit 5771e61
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion x/wasm/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,7 @@ func moduleLogger(ctx sdk.Context) log.Logger {
}

// Querier creates a new grpc querier instance
func Querier(k *Keeper) *grpcQuerier {
func Querier(k *Keeper) *grpcQuerier { //nolint:revive
return NewGrpcQuerier(k.cdc, k.storeKey, k, k.queryGasLimit)
}

Expand Down
8 changes: 4 additions & 4 deletions x/wasm/types/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ func ValidateGenesis(data GenesisState) error {
var _ codectypes.UnpackInterfacesMessage = GenesisState{}

// UnpackInterfaces implements codectypes.UnpackInterfaces
func (m GenesisState) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error {
for _, v := range m.Contracts {
func (s GenesisState) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error {
for _, v := range s.Contracts {
if err := v.UnpackInterfaces(unpacker); err != nil {
return err
}
Expand All @@ -115,6 +115,6 @@ func (m GenesisState) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error {
var _ codectypes.UnpackInterfacesMessage = &Contract{}

// UnpackInterfaces implements codectypes.UnpackInterfaces
func (m *Contract) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error {
return m.ContractInfo.UnpackInterfaces(unpacker)
func (c *Contract) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error {
return c.ContractInfo.UnpackInterfaces(unpacker)
}

0 comments on commit 5771e61

Please sign in to comment.