Skip to content

Instantly share code, notes, and snippets.

View jarrodlilkendey's full-sized avatar

Jarrod Lilkendey jarrodlilkendey

View GitHub Profile
require('dotenv').config();
console.log(process.env.ALCHEMY_URL);
import React, { Component } from 'react';
import ERC20_ABI from "./ERC20_ABI.json";
import { ethers } from "ethers";
class Metamask extends Component {
constructor(props) {
super(props);
import React, { Component } from 'react';
import ERC20_ABI from "./ERC20_ABI.json";
import { ethers } from "ethers";
class Metamask extends Component {
constructor(props) {
super(props);
[
{
"constant": true,
"inputs": [],
"name": "name",
"outputs": [
{
"name": "",
"type": "string"
}
import React, { Component } from 'react';
import { ethers } from "ethers";
class Metamask extends Component {
constructor(props) {
super(props);
this.state = {
};
import React, { Component } from 'react';
import { ethers } from "ethers";
class Metamask extends Component {
constructor(props) {
super(props);
this.state = {
};
import React, { Component } from 'react';
import { ethers } from "ethers";
class Metamask extends Component {
constructor(props) {
super(props);
this.state = {
};
import React, { Component } from 'react';
import { ethers } from "ethers";
class Metamask extends Component {
constructor(props) {
super(props);
}
async connectToMetamask() {
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import Metamask from './Metamask';
import reportWebVitals from './reportWebVitals';
ReactDOM.render(
<React.StrictMode>
<Metamask />
import React, { Component } from 'react';
class Metamask extends Component {
constructor(props) {
super(props);
}
render() {
return(
<div>