fix: add group existence check when verify permission #2028
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
|