Skip to content

Commit

Permalink
fix imports (allo-protocol#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xKurt authored Aug 11, 2023
1 parent 9cbe8de commit 27c4c5a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pragma solidity 0.8.19;
* registry.
*/

import "@openzeppelin/contracts/access/Ownable.sol";
import "solady/src/auth/Ownable.sol";

/// @title Simple Project Registry
/// @author @0xZakk <zakk@gitcoin.co>
Expand Down Expand Up @@ -56,7 +56,7 @@ contract SimpleProjectRegistry is Ownable {
//===========================

constructor(address _initialOwner) {
_transferOwnership(_initialOwner);
_initializeOwner(_initialOwner);
}

//===========================
Expand Down
17 changes: 15 additions & 2 deletions contracts/strategies/wrapped-voting-nftmint/NFT.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity 0.8.19;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import {ERC721} from "solady/src/tokens/ERC721.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "solady/src/auth/Ownable.sol";

Expand All @@ -17,16 +17,29 @@ contract NFT is ERC721, Ownable {
uint256 public MINT_PRICE;
uint256 public constant TOTAL_SUPPLY = 5;

string internal __name;
string internal __symbol;

constructor(
string memory _name,
string memory _symbol,
uint256 _price, //price in wei
address _owner
) ERC721(_name, _symbol) {
) {
__name = _name;
__symbol = _symbol;
MINT_PRICE = _price;
_initializeOwner(_owner);
}

function name() public view virtual override returns (string memory) {
return __name;
}

function symbol() public view virtual override returns (string memory) {
return __symbol;
}

function mintTo(address to) public payable {
if (msg.value != MINT_PRICE) {
revert MintPriceNotPaid();
Expand Down

0 comments on commit 27c4c5a

Please sign in to comment.