-
Notifications
You must be signed in to change notification settings - Fork 110
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
Create referral - premint executor acccepts both v1 and v2 signatures #273
Conversation
59db8c0
to
1f16b4b
Compare
todo:
|
import {ZoraCreator1155PremintExecutorImplLib } from './ZoraCreator1155PremintExecutorImplLib.sol'; | ||
import {ZoraCreator1155Attribution, ContractCreationConfig, PremintConfig, PremintConfigV2, TokenCreationConfig, TokenCreationConfigV2} from "./ZoraCreator1155Attribution.sol"; | ||
|
||
interface IZoraCreator1155PremintV1Signatures { |
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.
add natspec description
uint256 quantityMinted | ||
); | ||
|
||
function premint( |
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.
add natspec description
packages/1155-contracts/src/delegation/ZoraCreator1155PremintExecutorImpl.sol
Outdated
Show resolved
Hide resolved
tokenContract = IZoraCreator1155(newContractAddresss); | ||
} | ||
|
||
function isValidSignature( |
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.
add overload that lets you pass in contract creation config
5ca081e
to
414ea11
Compare
25cbf64
to
5b58361
Compare
414ea11
to
584f563
Compare
fb9ebc7
to
66d7bd1
Compare
584f563
to
6abc607
Compare
66d7bd1
to
003a91b
Compare
6abc607
to
3145165
Compare
003a91b
to
2288400
Compare
3145165
to
640736f
Compare
2288400
to
6d90ee0
Compare
Updated premint executor to take both v1 and v2 of premint signatures, and call the pass it to the erc1155 to execute premint.
Erc1155 now takes both v1 and v2 of premint and signatures, and passes them to an external library to decode the signatures and setup actions from the premints