We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ecef13 commit 0ccf7e3Copy full SHA for 0ccf7e3
contracts/multiwrap/Multiwrap.sol
@@ -287,6 +287,16 @@ contract Multiwrap is
287
: (royaltyForToken.recipient, uint16(royaltyForToken.bps));
288
}
289
290
+ /// @dev Returns the underlygin contents of a wrapped NFT.
291
+ function getWrappedContents(uint256 _tokenId) external view returns (Token[] memory contents) {
292
+ uint256 total = wrappedContents[_tokenId].count;
293
+ contents = new Token[](total);
294
+
295
+ for(uint256 i = 0; i < total; i += 1) {
296
+ contents[i] = wrappedContents[_tokenId].token[i];
297
+ }
298
299
300
/*///////////////////////////////////////////////////////////////
301
Setter functions
302
//////////////////////////////////////////////////////////////*/
0 commit comments