From c8fb9996623ef930c3bff4ade05b848d15c66faf Mon Sep 17 00:00:00 2001 From: Arr00 <13561405+arr00@users.noreply.github.com> Date: Fri, 26 Jul 2024 19:29:44 -0400 Subject: [PATCH 1/2] bug: correctly set owner of token --- src/NFTMint.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NFTMint.sol b/src/NFTMint.sol index 7d4ba4a..7d52d5c 100644 --- a/src/NFTMint.sol +++ b/src/NFTMint.sol @@ -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; From 9ee0fae8215ebd2bed6d973cb07ef41e6879bce6 Mon Sep 17 00:00:00 2001 From: Arr00 <13561405+arr00@users.noreply.github.com> Date: Fri, 26 Jul 2024 19:30:19 -0400 Subject: [PATCH 2/2] remove v1 deploy --- deployments/84532.json | 5 ----- 1 file changed, 5 deletions(-) diff --git a/deployments/84532.json b/deployments/84532.json index 2553a22..6f78d54 100644 --- a/deployments/84532.json +++ b/deployments/84532.json @@ -2,11 +2,6 @@ "contracts": { "NFTMint": { "deploys": [ - { - "deployedArgs": "0x0000000000000000000000000e63d6f414b40bafca676810ef1abf05ecc8e459", - "version": "1.0.0", - "address": "0x92E8B82a51cc266E39B5075436CB74FA2FCf280e" - }, { "deployedArgs": "0x0000000000000000000000000e63d6f414b40bafca676810ef1abf05ecc8e459", "version": "0.1.0",