Skip to content

Commit

Permalink
removed Is prefix from IsBurnt
Browse files Browse the repository at this point in the history
  • Loading branch information
miladz68 committed Jun 14, 2023
1 parent 8d91bd9 commit 82ae533
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 69 deletions.
2 changes: 1 addition & 1 deletion integration-tests/modules/assetnft_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ func TestAssetNFTBurn(t *testing.T) {
NftId: "id-1",
})
requireT.NoError(err)
requireT.True(burntNft.IsBurnt)
requireT.True(burntNft.Burnt)
}

// TestAssetNFTBurnFrozen tests that frozen NFT cannot be burnt.
Expand Down
2 changes: 1 addition & 1 deletion proto/coreum/asset/nft/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ message QueryBurntNFTRequest {
}

message QueryBurntNFTResponse {
bool is_burnt = 1;
bool burnt = 1;
}

message QueryBurntNFTsInClassRequest {
Expand Down
2 changes: 1 addition & 1 deletion x/asset/nft/client/cli/query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func TestCmdTxBurn(t *testing.T) {

var resp types.QueryBurntNFTResponse
requireT.NoError(ctx.Codec.UnmarshalJSON(buf.Bytes(), &resp))
requireT.True(resp.IsBurnt)
requireT.True(resp.Burnt)

args = []string{classID, "--output", "json"}
buf, err = clitestutil.ExecTestCLICmd(ctx, cli.CmdQueryBurnt(), args)
Expand Down
2 changes: 1 addition & 1 deletion x/asset/nft/keeper/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func (qs QueryService) BurntNFT(ctx context.Context, req *types.QueryBurntNFTReq
}

return &types.QueryBurntNFTResponse{
IsBurnt: isBurnt,
Burnt: isBurnt,
}, nil
}

Expand Down
129 changes: 64 additions & 65 deletions x/asset/nft/types/query.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 82ae533

Please sign in to comment.