-
Notifications
You must be signed in to change notification settings - Fork 458
Conversation
Codecov Report
@@ Coverage Diff @@
## release/6.1.0 #9014 +/- ##
=================================================
- Coverage 84.34% 84.33% -0.01%
=================================================
Files 652 652
Lines 23976 23961 -15
Branches 3487 3485 -2
=================================================
- Hits 20223 20208 -15
Misses 3753 3753
|
b65a788
to
e703140
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it'd be nice to add unit test to check if NFT has duplicate module attributes for these 2 scenarios :
- When a foreign NFT is received (lisk-sdk/framework/src/modules/nft/cc_commands/cc_transfer.ts#L142-L145)
- When a foreign NFT is bounced (lisk-sdk/framework/src/modules/nft/cc_commands/cc_transfer.ts#L149-L152)
@Incede for the first test, isn't it covered by I've also noticed that the |
I don't think the test case you mention is related to any of the 2 scenarios :
plus my suggestion is to check if NFT has duplicate module attributes for these 2 scenarios which isn't being currently checked, since the original issue was primarily about allowing "duplicate module attributes" and if the suggested test was already there the issue would have been caught before. Although I understand that the function |
What was the problem?
This PR resolves #9004
How was it solved?
createNFTEntry
,createEscrowEntry
andcreateUserEntry
methods of theInternalMethod
classhasDuplicateModuleNames
method to theInternalMethod
classexecute
method of theCrossChainTransferCommand
classcreate
method of theNFTMethod
classinitGenesisState
of theNFTModule
classHow was it tested?
Added and updated existing tests