Skip to content

Commit

Permalink
鈽勶笍馃洉 -> Compile fixes for contract in #3
Browse files Browse the repository at this point in the history
  • Loading branch information
Gizmotronn committed Feb 5, 2022
1 parent a8d5c4f commit c8a8d84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/GearToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ contract GearToken is ERC721, Ownable {
fee = _fee;
}

function withdraw() external payable onlyOwner() {
address _owner = owner();
function withdraw() external payable onlyOwner() { // Withdraw the (holding) gas fee that was paid, only users who have created NFTs can withdraw the gas they've put in
address payable _owner = payable(owner());
_owner.transfer(address(this).balance);
}

Expand All @@ -54,7 +54,7 @@ contract GearToken is ERC721, Ownable {
}

function createRandomGear(string memory _name) public payable {
require(msg.value == fee, "The fee is not correct"); // msg.value => how much the address input and sent to the contract
require(msg.value >= fee, "The fee is not correct"); // msg.value => how much the address input and sent to the contract
_createGear(_name);
}

Expand Down

0 comments on commit c8a8d84

Please sign in to comment.