import SimpleStorageJson from 'contracts/polygon/SimpleStorage/SimpleStorage.json' ; import { ethers } from 'ethers' ; declare let window ; const setValue = async ( contractAddress , value ) => { try { const provider = new ethers . providers . Web3Provider ( window . ethereum ) ; const signer = provider . getSigner ( ) ; const contract = new ethers . Contract ( undefined ) ; const transactionResult = undefined ; const receipt = await transactionResult . wait ( ) ; return { hash : receipt . transactionHash } ; } catch ( error ) { return { error : error . message , } ; } } ; export default setValue ;