Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

NFT module can not lock an NFT #8992

Merged
merged 6 commits into from
Sep 15, 2023
Merged

NFT module can not lock an NFT #8992

merged 6 commits into from
Sep 15, 2023

Conversation

has5aan
Copy link
Contributor

@has5aan has5aan commented Sep 14, 2023

What was the problem?

This PR resolves #8956

How was it solved?

Updated NFTModule.lock to throw if locking module is nft.

How was it tested?

Implemented unit tests.

@has5aan has5aan self-assigned this Sep 14, 2023
@codecov
Copy link

codecov bot commented Sep 14, 2023

Codecov Report

Merging #8992 (7c5ca58) into release/6.1.0 (7c5ca58) will not change coverage.
The diff coverage is n/a.

❗ Current head 7c5ca58 differs from pull request most recent head 75a9da5. Consider uploading reports for the commit 75a9da5 to get more accurate results

Impacted file tree graph

@@              Coverage Diff               @@
##           release/6.1.0    #8992   +/-   ##
==============================================
  Coverage          84.35%   84.35%           
==============================================
  Files                650      650           
  Lines              24027    24027           
  Branches            3490     3490           
==============================================
  Hits               20268    20268           
  Misses              3759     3759           

Copy link
Contributor

@mjerkov mjerkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The addition of check if locking module is not the NFT module is correct, as well as the unit test.

Base automatically changed from 8955-nft-getCollectionID to release/6.1.0 September 15, 2023 08:04
@Incede Incede self-requested a review September 15, 2023 09:23
@shuse2 shuse2 enabled auto-merge (squash) September 15, 2023 12:44
@shuse2 shuse2 merged commit c659e39 into release/6.1.0 Sep 15, 2023
8 checks passed
@shuse2 shuse2 deleted the 8956-nft-lock branch September 15, 2023 13:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants