Deployed new version + configurability for address

This commit is contained in:
mic0 2024-10-24 14:40:46 +02:00
parent cb12c772ae
commit cefb360792
Signed by: mico
GPG Key ID: A3F8023524CF1C8D
4 changed files with 98 additions and 27 deletions

3
app/contract_address.ts Normal file
View File

@ -0,0 +1,3 @@
const contractAddress = "0xbd06B0878888bf4c6895704fa603a5ADf7e65c66";
export default contractAddress

View File

@ -2,8 +2,8 @@ import React, { createContext, ReactNode, useCallback, useContext, useEffect } f
import { useAccount, useReadContract, useWriteContract } from 'wagmi' import { useAccount, useReadContract, useWriteContract } from 'wagmi'
import contractAbi from "../../../out/RaidGeld.sol/RaidGeld.json" import contractAbi from "../../../out/RaidGeld.sol/RaidGeld.json"
import { parseEther } from 'viem' import { parseEther } from 'viem'
import contractAddress from '../../contract_address'
const contractAddress = "0xbd06B0878888bf4c6895704fa603a5ADf7e65c66"
const abi = contractAbi.abi const abi = contractAbi.abi
export interface Player { export interface Player {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long