Skip to content

Commit

Permalink
fix: ownership to ScamFactory and mint you..
Browse files Browse the repository at this point in the history
  • Loading branch information
parktest0325 committed Apr 21, 2024
1 parent cf1787d commit 849cd5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blockchain/contracts/ScamFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ contract ScamFactory {
// event CollectionCreated(address collectionAddress, string name, string symbol);

function createCollection(string memory name, string memory symbol, string[] memory tokenURIs) public {
NewCollection newCollection = new NewCollection(name, symbol, msg.sender);
NewCollection newCollection = new NewCollection(name, symbol, address(this)); // ScamFactory가 소유자가 되도록 설정
collections.push(address(newCollection));
// emit CollectionCreated(address(newCollection), name, symbol);

Expand Down

0 comments on commit 849cd5b

Please sign in to comment.