feat(x/asset): Add clawback and transfer auth priviledges #323
Annotations
7 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/priviledges/clawback/msg_handler.go#L14
File is not `gofumpt`-ed (gofumpt)
|
lint:
x/asset/client/cli/tx.go#L26
File is not `gofumpt`-ed (gofumpt)
|
lint:
x/asset/priviledges/mint/msg_server.go#L15
File is not `gofumpt`-ed (gofumpt)
|
lint:
x/asset/priviledges/clawback/msg_handler.go#L43
`priviledge` is a misspelling of `privilege` (misspell)
|
lint:
x/asset/priviledges/mint/msg_server.go#L35
`priviledge` is a misspelling of `privilege` (misspell)
|
lint
issues found
|
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/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#L124
var-naming: func parameter tokenId should be tokenID (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)
|
lint:
x/asset/priviledges/clawback/priv.go#L8
var-naming: don't use underscores in Go names; const priv_name should be privName (revive)
|
lint:
x/asset/priviledges/clawback/priv.go#L10
exported: type name will be used as clawback.ClawbackPriviledge by other packages, and that stutters; consider calling this Priviledge (revive)
|
lint:
x/asset/priviledges/mint/msg_server.go#L28
unused-parameter: parameter 'privAcc' seems to be unused, consider removing or renaming it as _ (revive)
|