Skip to content

Commit

Permalink
refactor: set create referral on delegated init
Browse files Browse the repository at this point in the history
  • Loading branch information
kulkarohan authored and oveddan committed Oct 17, 2023
1 parent 1ef659e commit 30c5a02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/1155-contracts/src/nft/ZoraCreator1155Impl.sol
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,8 @@ contract ZoraCreator1155Impl is
// create the new token; msg sender will have PERMISSION_BIT_ADMIN on the new token
newTokenId = _setupNewTokenAndPermission(premintConfig.tokenConfig.tokenURI, premintConfig.tokenConfig.maxSupply, msg.sender, PERMISSION_BIT_ADMIN);

_setCreateReferral(newTokenId, premintConfig.tokenConfig.createReferral);

delegatedTokenId[premintConfig.uid] = newTokenId;

firstMinters[newTokenId] = sender;
Expand Down

0 comments on commit 30c5a02

Please sign in to comment.