diff --git a/contracts/.nvmrc b/contracts/.nvmrc new file mode 100644 index 0000000..da2d398 --- /dev/null +++ b/contracts/.nvmrc @@ -0,0 +1 @@ +14 \ No newline at end of file diff --git a/contracts/Rocketeer.sol b/contracts/Rocketeer.sol index cb819dc..f5aaa50 100644 --- a/contracts/Rocketeer.sol +++ b/contracts/Rocketeer.sol @@ -43,7 +43,7 @@ contract Rocketeer is ERC721Tradable { // Minting // /////////////////////////////// - function spawnRocketeer( address _to ) public onlyOwner { + function spawnRocketeer( address _to ) public { uint256 nextTokenId = _getNextTokenId(); diff --git a/minter/src/App.js b/minter/src/App.js index 1b09dc8..826457b 100644 --- a/minter/src/App.js +++ b/minter/src/App.js @@ -5,7 +5,7 @@ import './App.css' import { useState, useEffect } from 'react' -import { getAddress, useAddress, useTotalSupply, useContract, signer } from './modules/web3' +import { getAddress, useAddress, useTotalSupply, useContract } from './modules/web3' import { log } from './modules/helpers' function App() { @@ -26,7 +26,9 @@ function App() { // /////////////////////////////// // Handle user login interaction - async function metamasklogin() { + async function metamasklogin( e ) { + + e.preventDefault() try { @@ -42,7 +44,9 @@ function App() { } - async function mintRocketeer() { + async function mintRocketeer( e ) { + + e.preventDefault() try { @@ -80,7 +84,7 @@ function App() {
This interface is used to mint new Rocketeer NFTs. Minting is free, except for the gas fees. After minting you can view your new Rocketeer and its attributes on Opensea.
- +