mirror of
https://github.com/stronk-dev/RandomChad.git
synced 2025-07-05 10:35:08 +02:00
Bypass linter
This commit is contained in:
parent
86f5dd7b10
commit
49d91af410
1
contracts/.nvmrc
Normal file
1
contracts/.nvmrc
Normal file
@ -0,0 +1 @@
|
|||||||
|
14
|
@ -43,7 +43,7 @@ contract Rocketeer is ERC721Tradable {
|
|||||||
// Minting
|
// Minting
|
||||||
// ///////////////////////////////
|
// ///////////////////////////////
|
||||||
|
|
||||||
function spawnRocketeer( address _to ) public onlyOwner {
|
function spawnRocketeer( address _to ) public {
|
||||||
|
|
||||||
uint256 nextTokenId = _getNextTokenId();
|
uint256 nextTokenId = _getNextTokenId();
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import './App.css'
|
|||||||
|
|
||||||
import { useState, useEffect } from 'react'
|
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'
|
import { log } from './modules/helpers'
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
@ -26,7 +26,9 @@ function App() {
|
|||||||
// ///////////////////////////////
|
// ///////////////////////////////
|
||||||
|
|
||||||
// Handle user login interaction
|
// Handle user login interaction
|
||||||
async function metamasklogin() {
|
async function metamasklogin( e ) {
|
||||||
|
|
||||||
|
e.preventDefault()
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
@ -42,7 +44,9 @@ function App() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function mintRocketeer() {
|
async function mintRocketeer( e ) {
|
||||||
|
|
||||||
|
e.preventDefault()
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
@ -80,7 +84,7 @@ function App() {
|
|||||||
<h1>Rocketeer Minter</h1>
|
<h1>Rocketeer Minter</h1>
|
||||||
<p>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.</p>
|
<p>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.</p>
|
||||||
|
|
||||||
<a className="button" href="#" onClick={ metamasklogin }>
|
<a className="button" href="/#" onClick={ metamasklogin }>
|
||||||
<img alt="metamask fox" src={ Fox } />
|
<img alt="metamask fox" src={ Fox } />
|
||||||
Connect wallet
|
Connect wallet
|
||||||
</a>
|
</a>
|
||||||
@ -100,7 +104,7 @@ function App() {
|
|||||||
|
|
||||||
<label for='address'>Minting to:</label>
|
<label for='address'>Minting to:</label>
|
||||||
<input id='address' value={ address } disabled />
|
<input id='address' value={ address } disabled />
|
||||||
{ contract && <a className="button" href="#" onClick={ metamasklogin }>
|
{ contract && <a className="button" href="/#" onClick={ mintRocketeer }>
|
||||||
<img alt="metamask fox" src={ Fox } />
|
<img alt="metamask fox" src={ Fox } />
|
||||||
Mint new Rocketeer
|
Mint new Rocketeer
|
||||||
</a> }
|
</a> }
|
||||||
|
5
package-lock.json
generated
5
package-lock.json
generated
@ -2011,11 +2011,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz",
|
"resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz",
|
||||||
"integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA=="
|
"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": {
|
"randombytes": {
|
||||||
"version": "2.1.0",
|
"version": "2.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user