Skip to content

Instantly share code, notes, and snippets.

View AymericFerreira's full-sized avatar

Aymeric AymericFerreira

  • Québec
View GitHub Profile
@AymericFerreira
AymericFerreira / App.js
Last active April 13, 2022 12:55 — forked from adilanchian/App.js
Section 5: Update UI + deploy to an Ethereum testnet so anyone on the internet can wave at you using their
import React, { useEffect, useState } from "react";
import { ethers } from "ethers";
import './App.css';
import wavePortal from './utils/WavePortal.json';
const App = () => {
const [currentAccount, setCurrentAccount] = useState("");
const [allWaves, setAllWaves] = useState([]);
const contractAddress = "0xd5f08a0ae197482FA808cE84E00E97d940dBD26E";