-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Mint Fees as config param to claims #81
Conversation
LCOV of commit
|
@@ -33,8 +33,7 @@ contract ERC1155LazyPayableClaim is IERC165, IERC1155LazyPayableClaim, ICreatorE | |||
interfaceId == type(IERC165).interfaceId; | |||
} | |||
|
|||
constructor(address initialOwner, address delegationRegistry, address delegationRegistryV2) LazyPayableClaim(initialOwner, delegationRegistry, delegationRegistryV2) {} | |||
|
|||
constructor(address initialOwner, address delegationRegistry, address delegationRegistryV2, uint256 mintFee, uint256 mintFeeMerkle) LazyPayableClaim(initialOwner, delegationRegistry, delegationRegistryV2, mintFee, mintFeeMerkle) {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix ordering, put mint fees first.
@@ -47,7 +47,7 @@ contract ERC721LazyPayableClaim is IERC165, IERC721LazyPayableClaim, ICreatorExt | |||
interfaceId == type(IERC165).interfaceId; | |||
} | |||
|
|||
constructor(address initialOwner, address delegationRegistry, address delegationRegistryV2) LazyPayableClaim(initialOwner, delegationRegistry, delegationRegistryV2) {} | |||
constructor(address initialOwner, address delegationRegistry, address delegationRegistryV2, uint256 mintFee, uint256 mintFeeMerkle) LazyPayableClaim(initialOwner, delegationRegistry, delegationRegistryV2, mintFee, mintFeeMerkle) {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix ordering, put mint fees first (convention is to put static variables first.
@@ -72,12 +72,13 @@ abstract contract LazyPayableClaim is ILazyPayableClaim, AdminControl { | |||
_; | |||
} | |||
|
|||
constructor(address initialOwner, address delegationRegistry, address delegationRegistryV2) { | |||
constructor(address initialOwner, address delegationRegistry, address delegationRegistryV2, uint256 mintFee, uint256 mintFeeMerkle) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix ordering, put mint fees first (convention is to put static variables first.
You need to update the deploy scripts and set it to switch on a network environment variable. The deploy scripts should have the hardcoded amounts. |
.github/workflows/ci.yml
Outdated
@@ -20,10 +20,10 @@ jobs: | |||
ref: ${{ github.event.pull_request.head.ref }} | |||
repository: ${{ github.event.pull_request.head.repo.full_name }} | |||
|
|||
- name: Set Node to v16 | |||
- name: Set Node to v18 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we're on 20 now
Closing this because it won't work and will result in different contract addresses across different networks. |
This PR updates mint fees to be initialization params
moves MINT_FEE and MINT_FEE_MERKLE to be constructor params to allow for variable mint fee to for allowing for different fees to be charged on different networks.