Skip to content

feat(x/asset): Add clawback and transfer auth priviledges #320

feat(x/asset): Add clawback and transfer auth priviledges

feat(x/asset): Add clawback and transfer auth priviledges #320

Triggered via pull request September 18, 2024 17:31
Status Failure
Total duration 36s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 11 warnings
lint: x/asset/keeper/keeper_test.go#L109
cannot use (func(context context.Context, privMsg proto.Message, tokenID string, privAcc sdk.AccAddress) (proto.Message, error) literal) (value of type func(context context.Context, privMsg "github.com/gogo/protobuf/proto".Message, tokenID string, privAcc "github.com/cosmos/cosmos-sdk/types".AccAddress) ("github.com/gogo/protobuf/proto".Message, error)) as "github.com/realiotech/realio-network/x/asset/types".MsgHandler value in return statement (typecheck)
lint: x/asset/keeper/msg_server_test.go#L90
not enough arguments in call to types.NewTokenManagement
lint: x/asset/keeper/msg_server_test.go#L165
not enough arguments in call to types.NewTokenManagement
lint: x/asset/keeper/msg_server_test.go#L238
not enough arguments in call to types.NewTokenManagement
lint: x/asset/keeper/msg_server_test.go#L310
not enough arguments in call to types.NewTokenManagement
lint: x/asset/keeper/msg_server_test.go#L385
not enough arguments in call to types.NewTokenManagement
lint: x/asset/keeper/msg_server_test.go#L450
not enough arguments in call to types.NewTokenManagement
lint: x/asset/keeper/msg_server_test.go#L486
not enough arguments in call to types.NewTokenManagement
lint: x/asset/keeper/msg_server_test.go#L546
not enough arguments in call to types.NewTokenManagement
lint: x/asset/priviledges/clawback/msg_handler.go#L14
File is not `gofumpt`-ed (gofumpt)
lint
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4, actions/checkout@v3, golangci/golangci-lint-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
lint: x/asset/priviledges/clawback/priv.go#L9
exported: type name will be used as clawback.ClawbackPriviledge by other packages, and that stutters; consider calling this Priviledge (revive)
lint: x/asset/priviledges/clawback/priv.go#L7
var-naming: don't use underscores in Go names; const priv_name should be privName (revive)
lint: x/asset/priviledges/clawback/priv.go#L23
unused-parameter: parameter 'registry' seems to be unused, consider removing or renaming it as _ (revive)
lint: x/asset/types/msg.go#L124
var-naming: func parameter tokenId should be tokenID (revive)
lint: x/asset/types/token.go#L3
var-naming: func parameter tokenId should be tokenID (revive)
lint: x/asset/types/events.go#L8
var-naming: const AttributeKeyTokenId should be AttributeKeyTokenID (revive)
lint: x/asset/types/msg.go#L162
var-naming: func parameter tokenId should be tokenID (revive)
lint: x/asset/types/msg.go#L208
var-naming: func parameter tokenId should be tokenID (revive)
lint: x/asset/types/msg.go#L254
var-naming: func parameter tokenId should be tokenID (revive)
lint: x/asset/types/msg.go#L293
var-naming: func parameter tokenId should be tokenID (revive)