Skip to content

fix: add group existence check when verify permission #2028

fix: add group existence check when verify permission

fix: add group existence check when verify permission #2028

Triggered via pull request August 2, 2023 07:49
@fynnssfynnss
synchronize #401
fynnss:develop
Status Failure
Total duration 1m 56s
Artifacts

lint.yml

on: pull_request
Matrix: golangci-lint
Fit to window
Zoom out
Zoom in

Annotations

6 errors
golangci-lint (1.20.x, ubuntu-latest): x/storage/genesis_test.go#L1
: # github.com/bnb-chain/greenfield/x/storage_test [github.com/bnb-chain/greenfield/x/storage.test]
golangci-lint (1.20.x, ubuntu-latest): x/storage/genesis_test.go#L34
cannot use &types.MockPermissionKeeper{} (value of type *"github.com/bnb-chain/greenfield/x/storage/types".MockPermissionKeeper) as "github.com/bnb-chain/greenfield/x/storage/types".PermissionKeeper value in argument to keeper.NewKeeper: *"github.com/bnb-chain/greenfield/x/storage/types".MockPermissionKeeper does not implement "github.com/bnb-chain/greenfield/x/storage/types".PermissionKeeper (wrong type for method VerifyPolicy)
golangci-lint (1.20.x, ubuntu-latest): x/storage/keeper/cross_app_bucket_test.go#L1
: # github.com/bnb-chain/greenfield/x/storage/keeper_test [github.com/bnb-chain/greenfield/x/storage/keeper.test]
golangci-lint (1.20.x, ubuntu-latest): x/storage/keeper/grpc_query_test.go#L36
cannot use &types.MockPermissionKeeper{} (value of type *"github.com/bnb-chain/greenfield/x/storage/types".MockPermissionKeeper) as "github.com/bnb-chain/greenfield/x/storage/types".PermissionKeeper value in argument to keeper.NewKeeper: *"github.com/bnb-chain/greenfield/x/storage/types".MockPermissionKeeper does not implement "github.com/bnb-chain/greenfield/x/storage/types".PermissionKeeper (wrong type for method VerifyPolicy)
golangci-lint (1.20.x, ubuntu-latest): x/storage/keeper/payment_test.go#L74
cannot use permissionKeeper (variable of type *"github.com/bnb-chain/greenfield/x/storage/types".MockPermissionKeeper) as "github.com/bnb-chain/greenfield/x/storage/types".PermissionKeeper value in argument to keeper.NewKeeper: *"github.com/bnb-chain/greenfield/x/storage/types".MockPermissionKeeper does not implement "github.com/bnb-chain/greenfield/x/storage/types".PermissionKeeper (wrong type for method VerifyPolicy)
golangci-lint (1.20.x, ubuntu-latest)
issues found