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 18, 2023
1 parent b29acc3 commit 2dba914
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 @@ -765,6 +765,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 2dba914

Please sign in to comment.