Skip to content

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

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

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

Triggered via pull request September 20, 2024 12:18
Status Failure
Total duration 4m 47s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 8 warnings
lint: x/asset/priviledges/clawback/messages.pb.go#L1
: # github.com/realiotech/realio-network/x/asset/priviledges/clawback
lint: x/asset/priviledges/clawback/msg_handler.go#L38
cannot use func(context context.Context, msg proto.Message, tokenID string, privAcc sdk.AccAddress) (proto.Message, error) {…} (value of type func(context "context".Context, msg "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/freeze/msg_server.go#L29
cannot use (func(context context.Context, msg proto.Message, tokenID string, privAcc sdk.AccAddress) (proto.Message, error) literal) (value of type func(context "context".Context, msg "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/mint/messages.pb.go#L1
: # github.com/realiotech/realio-network/x/asset/priviledges/mint
lint: x/asset/priviledges/mint/msg_server.go#L29
cannot use func(context context.Context, msg proto.Message, tokenID string, privAcc sdk.AccAddress) (proto.Message, error) {…} (value of type func(context "context".Context, msg "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/transfer_auth/msg_server.go#L26
cannot use (func(context context.Context, msg proto.Message, tokenID string, privAcc sdk.AccAddress) (proto.Message, error) literal) (value of type func(context "context".Context, msg "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: app/apptesting/test_suite.go#L41
expected 'IDENT', found newline (typecheck)
lint: app/apptesting/test_suite.go#L43
expected '(', found 'func' (typecheck)
lint: app/app.go#L129
could not import github.com/realiotech/realio-network/x/asset/priviledges/clawback (-: # github.com/realiotech/realio-network/x/asset/priviledges/clawback
lint: x/asset/priviledges/clawback/msg_handler.go#L38
cannot use func(context context.Context, msg proto.Message, tokenID string, privAcc sdk.AccAddress) (proto.Message, error) {…} (value of type func(context "context".Context, msg "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
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/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/token.go#L3
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)