From fd14d320a17c48297658fbe72697d876bdd07624 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Tue, 24 Jan 2023 12:07:50 -0800 Subject: [PATCH] update contract and providers --- src/App.js | 5 +++-- src/abi.json | 8 +++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/App.js b/src/App.js index 257a78e..250afdc 100644 --- a/src/App.js +++ b/src/App.js @@ -7,6 +7,7 @@ import { } from 'wagmi'; import { localhost, goerli } from 'wagmi/chains'; import { publicProvider } from 'wagmi/providers/public'; +import { infuraProvider } from 'wagmi/providers/infura'; import { InjectedConnector } from 'wagmi/connectors/injected'; import { readContract, writeContract, prepareWriteContract, waitForTransaction } from '@wagmi/core' import { ethers, BigNumber } from 'ethers'; @@ -21,11 +22,11 @@ import 'bulma/css/bulma.min.css'; import 'noty/lib/noty.css'; import 'noty/lib/themes/relax.css'; -const contractAddress = "0xa8553a4c170f2aa41c036fa768e698de56c2960f"; +const contractAddress = "0x4f2888c3f43f87190d7d3f4df99329c74b3039c9"; const { chains, provider } = configureChains( [localhost, goerli], - [publicProvider()] + [infuraProvider({ apiKey: 'e7674eea9d72437d9129b41ed018183d' }), publicProvider()] ); const connector = new InjectedConnector({ chains }); diff --git a/src/abi.json b/src/abi.json index 620ddef..7d40752 100644 --- a/src/abi.json +++ b/src/abi.json @@ -683,7 +683,13 @@ "type": "function" }, { - "inputs": [], + "inputs": [ + { + "internalType": "uint256", + "name": "_amount", + "type": "uint256" + } + ], "name": "withdraw", "outputs": [], "stateMutability": "nonpayable",