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

Fix Licensing Minting Payment to Account for Mint Amount #129

Merged
merged 4 commits into from
Feb 23, 2024

Conversation

jdubpark
Copy link
Contributor

@jdubpark jdubpark commented Feb 23, 2024

Previously we ran tests with MintPaymentPolicyFrameworkManager, but it was removed with changes in the Licensing Module. We missed the multiplication for the mint payment amount and had no test against it. This is a quick fix with a working test added.

Thank you @Spablob for finding this bug!

@jdubpark jdubpark requested review from Spablob and a team and removed request for Spablob February 23, 2024 01:28
Copy link

openzeppelin-code bot commented Feb 23, 2024

Fix Licensing Minting Payment to Account for Mint Amount

Generated at commit: 7e05df3dbcc53c6b1e57550dd65f3f3d7033e4e4

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
1
1
0
5
32
39
Dependencies Critical
High
Medium
Low
Note
Total
0
2
0
1
83
86

For more details view the full report in OpenZeppelin Code Inspector

@LeoHChen LeoHChen merged commit f89db55 into storyprotocol:main Feb 23, 2024
1 check passed
kingster-will referenced this pull request in kingster-will/protocol-core-v1-dev Mar 19, 2024
…ol#129)

* fix: mint payment based on amount minted
* feat: mint license input validations
* test: add license minting fee test in integration
* test: fix helper policy params & update test for mint amounts
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.

3 participants