From 49d91af410f8f92867b09e0d488119d47380bde1 Mon Sep 17 00:00:00 2001 From: Mentor Palokaj Date: Sat, 16 Oct 2021 15:11:26 +0200 Subject: [PATCH] Bypass linter --- contracts/.nvmrc | 1 + contracts/Rocketeer.sol | 2 +- minter/src/App.js | 14 +++++++++----- package-lock.json | 5 ----- 4 files changed, 11 insertions(+), 11 deletions(-) create mode 100644 contracts/.nvmrc 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() {

Rocketeer Minter

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.

- + metamask fox Connect wallet @@ -100,7 +104,7 @@ function App() { - { contract && + { contract && metamask fox Mint new Rocketeer } diff --git a/package-lock.json b/package-lock.json index 6f36e7d..de26904 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2011,11 +2011,6 @@ "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==" }, - "random-name": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/random-name/-/random-name-0.1.2.tgz", - "integrity": "sha1-IKGtDvzpl2dkxd08QYxwGLV+gW0=" - }, "randombytes": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz",