From e8c0f14330cf3cd946eb114538a104f9bff3c9ce Mon Sep 17 00:00:00 2001 From: avalkov Date: Thu, 28 Apr 2022 13:13:31 +0300 Subject: [PATCH] Fix NFT tests --- x/nft/keeper/grpc_query_test.go | 2 +- x/nft/keeper/nft_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x/nft/keeper/grpc_query_test.go b/x/nft/keeper/grpc_query_test.go index 5b32264a..cfadfb5c 100644 --- a/x/nft/keeper/grpc_query_test.go +++ b/x/nft/keeper/grpc_query_test.go @@ -121,7 +121,7 @@ func (suite *IntegrationTestKeeperSuite) TestGetApprovalsNFT_Correctly_ReturnsAp }) suite.NoError(err) - suite.Assert().Contains(suite.ctx, response.ApprovedAddresses, address2.String()) + suite.Assert().Contains(response.ApprovedAddresses, address2.String()) } func (suite *IntegrationTestKeeperSuite) TestIsApprovedOperator_ReturnsTrue_WhenOperatorIsApproved() { diff --git a/x/nft/keeper/nft_test.go b/x/nft/keeper/nft_test.go index 790a51d7..28fb0a25 100644 --- a/x/nft/keeper/nft_test.go +++ b/x/nft/keeper/nft_test.go @@ -99,7 +99,7 @@ func (suite *IntegrationTestKeeperSuite) TestRevokeApprovalNFT_ReturnsCorrect() nft, err = suite.keeper.GetBaseNFT(suite.ctx, denomID2, tokenId) suite.NoError(err) - assert.Equal(suite.T(), map[string]bool(nil), nft.ApprovedAddresses) + assert.Equal(suite.T(), []string([]string(nil)), nft.ApprovedAddresses) }