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

Commit

Permalink
fix: verifyMint caller parameter in license minting
Browse files Browse the repository at this point in the history
  • Loading branch information
jdubpark committed Feb 18, 2024
1 parent 921b3eb commit 05f6de1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions contracts/modules/licensing/LicensingModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,9 @@ contract LicensingModule is AccessControlled, ILicensingModule, BaseModule, Reen
}

// If a policy is set, then is only up to the policy params.
// Verify minting param
if (!pfm.verifyMint(msg.sender, isInherited, licensorIpId, receiver, amount, pol.frameworkData)) {
// When verifying mint via PFM, pass in `receiver` as the `licensee` since the receiver is the one who will own
// the license NFT after minting.
if (!pfm.verifyMint(receiver, isInherited, licensorIpId, receiver, amount, pol.frameworkData)) {
revert Errors.LicensingModule__MintLicenseParamFailed();
}

Expand Down

0 comments on commit 05f6de1

Please sign in to comment.