Skip to content

Commit cc335f8

Browse files
authored
Update DeviceNFT.sol
Fix typo + update to latest Ownable requirements from Openzeppelin
1 parent 0ef9509 commit cc335f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contracts/examples/DeviceNFT.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ contract DeviceNFT is ERC721Upgradeable, OwnableUpgradeable {
88
event MinterConfigured(address indexed minter, uint256 minterAllowedAmount);
99
event MinterRemoved(address indexed minter);
1010
event MinterAllowanceIncremented(address indexed owner, address indexed minter, uint256 allowanceIncrement);
11-
event SetBastURI(string uri);
11+
event SetBaseURI(string uri);
1212

1313
mapping(address => bool) internal minters;
1414
mapping(address => uint256) internal minterAllowed;
1515
string internal uri;
1616
uint256 public total;
1717

1818
function initialize(string memory _name, string memory _symbol) external initializer {
19-
__Ownable_init();
19+
__Ownable_init(msg.sender);
2020
__ERC721_init(_name, _symbol);
2121
uri = "";
2222
}
@@ -65,7 +65,7 @@ contract DeviceNFT is ERC721Upgradeable, OwnableUpgradeable {
6565

6666
function setBaseURI(string calldata _uri) external onlyOwner {
6767
uri = _uri;
68-
emit SetBastURI(_uri);
68+
emit SetBaseURI(_uri);
6969
}
7070

7171
function _baseURI() internal view virtual override returns (string memory) {

0 commit comments

Comments
 (0)