Skip to content

Commit

Permalink
Improves soulbound detection on RenderUtils.getExtendedNFT.
Browse files Browse the repository at this point in the history
  • Loading branch information
steven2308 committed Sep 6, 2023
1 parent abf0673 commit d740f26
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions contracts/RMRK/utils/RMRKRenderUtils.sol
Original file line number Diff line number Diff line change
Expand Up @@ -124,17 +124,17 @@ contract RMRKRenderUtils {
tokenId
);
}
data.rootOwner = targetEquippable.ownerOf(tokenId);
if (data.directOwner == address(0x0)) {
data.directOwner = data.rootOwner;
}
if (targetEquippable.supportsInterface(type(IERC6454).interfaceId)) {
data.isSoulbound = !IERC6454(targetCollection).isTransferable(
tokenId,
address(0),
address(0)
data.rootOwner,
0x000000000000000000000000000000000000dEaD
);
}
data.rootOwner = targetEquippable.ownerOf(tokenId);
if (data.directOwner == address(0x0)) {
data.directOwner = data.rootOwner;
}
try targetCollectionData.name() returns (string memory name) {
data.name = name;
} catch {
Expand Down

0 comments on commit d740f26

Please sign in to comment.