Skip to content

Commit

Permalink
bug: correctly set owner of token (#11)
Browse files Browse the repository at this point in the history
* bug: correctly set owner of token

* remove v1 deploy
  • Loading branch information
arr00 authored Jul 26, 2024
1 parent 97efd0b commit ab7531d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions deployments/84532.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
"contracts": {
"NFTMint": {
"deploys": [
{
"deployedArgs": "0x0000000000000000000000000e63d6f414b40bafca676810ef1abf05ecc8e459",
"version": "1.0.0",
"address": "0x92E8B82a51cc266E39B5075436CB74FA2FCf280e"
},
{
"deployedArgs": "0x0000000000000000000000000e63d6f414b40bafca676810ef1abf05ecc8e459",
"version": "0.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/NFTMint.sol
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ contract NFTMint is Ownable {
*/
function createMint(MintArgs memory args) external returns (MintERC1155) {
MintERC1155 newMint = MintERC1155(Clones.clone(MINT_NFT_LOGIC));
newMint.initialize(address(this), args.name, args.imageURI, args.description, args.editions);
newMint.initialize(args.owner, args.name, args.imageURI, args.description, args.editions);

MintInfo storage mintInfo = mints[newMint];
mintInfo.owner = args.owner;
Expand Down

0 comments on commit ab7531d

Please sign in to comment.