Skip to content

Commit

Permalink
chore: add missing comments and duplicated asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
sebsadface committed Aug 20, 2024
1 parent f3348ea commit 92adb72
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions contracts/StoryProtocolGateway.sol
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ contract StoryProtocolGateway is IStoryProtocolGateway, ERC721Holder, AccessMana
/// @param derivData The derivative data to be used for registerDerivative.
/// @param nftMetadata OPTIONAL. The desired metadata for the newly minted NFT.
/// @param ipMetadata OPTIONAL. The desired metadata for the newly registered IP.
/// @param recipient The address to receive the minted NFT.
/// @return ipId The ID of the registered IP.
/// @return tokenId The ID of the minted NFT.
function mintAndRegisterIpAndMakeDerivative(
Expand Down Expand Up @@ -556,6 +557,7 @@ contract StoryProtocolGateway is IStoryProtocolGateway, ERC721Holder, AccessMana
/// @param licenseTemplate The address of the license template.
/// @param licenseTermsId The ID of the license terms for the parent IP.
/// @param amount The amount of licenses to mint.
/// @return The mint fee for the given parent IP.
function _getMintFeeForSingleParent(
address childIpId,
address parentIpId,
Expand Down
1 change: 1 addition & 0 deletions contracts/interfaces/IStoryProtocolGateway.sol
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ interface IStoryProtocolGateway {
/// @param derivData The derivative data to be used for registerDerivative.
/// @param nftMetadata OPTIONAL. The desired metadata for the newly minted NFT.
/// @param ipMetadata OPTIONAL. The desired metadata for the newly registered IP.
/// @param recipient The address to receive the minted NFT.
/// @return ipId The ID of the registered IP.
/// @return tokenId The ID of the minted NFT.
function mintAndRegisterIpAndMakeDerivative(
Expand Down
1 change: 0 additions & 1 deletion test/StoryProtocolGateway.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,6 @@ contract StoryProtocolGatewayTest is BaseTest {
assertTrue(ipAssetRegistry.isRegistered(ipIdChild));
assertEq(tokenIdChild, 2);
assertMetadata(ipIdChild, ipMetadataDefault);
assertMetadata(ipIdChild, ipMetadataDefault);
(address licenseTemplateChild, uint256 licenseTermsIdChild) = licenseRegistry.getAttachedLicenseTerms(
ipIdChild,
0
Expand Down

0 comments on commit 92adb72

Please sign in to comment.