Skip to content

Commit

Permalink
Update app/ante.go
Browse files Browse the repository at this point in the history
Signed-off-by: yihuang <[email protected]>
  • Loading branch information
yihuang authored Dec 5, 2023
1 parent 7c85b44 commit 6b66e0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ func (vtd ValidateMsgTransferDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, s
return ctx, sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "class id length must be less than %d", MaxClassIDLength)

Check failure on line 87 in app/ante.go

View workflow job for this annotation

GitHub Actions / golangci-lint

SA1019: sdkerrors.Wrapf is deprecated: functionality of this package has been moved to it's own module: (staticcheck)
}

Check warning on line 88 in app/ante.go

View check run for this annotation

Codecov / codecov/patch

app/ante.go#L87-L88

Added lines #L87 - L88 were not covered by tests

if len(transfer.TokenIds) > MaxClassIDLength {
return ctx, sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "token id length must be less than %d", MaxClassIDLength)
if len(transfer.TokenIds) > MaxTokenIds {
return ctx, sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "token id length must be less than %d", MaxTokenIds)

Check failure on line 91 in app/ante.go

View workflow job for this annotation

GitHub Actions / golangci-lint

SA1019: sdkerrors.Wrapf is deprecated: functionality of this package has been moved to it's own module: (staticcheck)
}

Check warning on line 92 in app/ante.go

View check run for this annotation

Codecov / codecov/patch

app/ante.go#L91-L92

Added lines #L91 - L92 were not covered by tests

for _, tokenID := range transfer.TokenIds {
Expand Down

0 comments on commit 6b66e0b

Please sign in to comment.