title: Invalid address or ENS name
body: <p>I can't understand what the problem is. When I am run the app I am getting this error:</p>
  <pre><code>Unhandled Runtime Error
  Error: invalid address or ENS name (argument=&quot;name&quot;, value=5.050201689117535e+47, code=INVALID_ARGUMENT, version=contracts/5.5.0)
  </code></pre>
  <p>My code is given below:</p>
  <pre><code>import {ethers} from 'ethers'
  import {useEffect, useState} from 'react'
  import axios from 'axios'
  import Web3Modal from 'web3modal'
  
  import { nftaddress, nftmarketaddress } from '../config'
  
  import NFT from '../artifacts/contracts/NFT.sol/NFT.json'
  import Market from '../artifacts/contracts/Market.sol/Market.json'
  
  export default function Home() {
    const [nfts, setNFts] = useState([])
    const [loadingState, setLoadingState] = useState('not-loaded')
  
    useEffect(()=&gt; {
      loadNFTs()
    }, [])
  
    async function loadNFTs() {
      // what we want to load:
      // ***provider, tokenContract, marketContract, data for our marketItems***
  
      const provider = new ethers.providers.JsonRpcProvider()
      const tokenContract = new ethers.Contract(nftaddress, NFT.abi, provider)
      const marketContract = new ethers.Contract(nftmarketaddress, Market.abi, provider)
      const data = await marketContract.fetchMarketTokens()
  
      const items = await Promise.all(data.map(async i =&gt; {
        const tokenUri = await tokenContract.tokenURI(i.tokenId)
        // we want get the token metadata - json 
        const meta = await axios.get(tokenUri)
        let price = ethers.utils.formatUnits(i.price.toString(), 'ether')
        let item = {
          price,
          tokenId: i.tokenId.toNumber(),
          seller: i.seller,
          owner: i.owner,
          image: meta.data.image, 
          name: meta.data.name,
          description: meta.data.description
        }
        return item
      }))
  
      setNFts(items)
      setLoadingState('loaded')
    }
  
    // function to buy nfts for market 
  
    async function buyNFT(nft) {
      const web3Modal = new Web3Modal()
      // const web3Modal = new Web3Modal({
      //   network: &quot;ropsten&quot;, // optional
      //   cacheProvider: true, // optional
      //   providerOptions // required
      // });
      const connection = await web3Modal.connect()
      const provider = new ` `ethers.providers.Web3Provider(connection)
      const signer = await provider.getSigner()
      const contract = new ethers.Contract(nftmarketaddress, Market.abi, signer)
  
      const price = ethers.utils.parseUnits(nft.price.toString(), 'ether')
      const transaction = await contract.createMarketSale(nftaddress, nft.tokenId, {
        value: price
      })
  
      await transaction.wait()
      loadNFTs()
    }
    if(loadingState === 'loaded' &amp;&amp; !nfts.length) return (&lt;h1
    className='px-20 py-7 text-4x1'&gt;No NFts in marketplace&lt;/h1&gt;)
  
    return (
      &lt;div className='flex justify-center'&gt;
            &lt;div className='px-4' style={{maxWidth: '1600px'}}&gt;
            &lt;div className='grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 pt-4'&gt;
              {
                nfts.map((nft, i)=&gt;(
                  &lt;div key={i} className='border shadow rounded-x1 overflow-hidden'&gt;
                    &lt;img src={nft.image} /&gt;
                    &lt;div className='p-4'&gt;
                      &lt;p style={{height:'64px'}} className='text-3x1 font-semibold'&gt;{
                        nft.name}&lt;/p&gt;
                        &lt;div style={{height:'72px', overflow:'hidden'}}&gt;
                          &lt;p className='text-gray-400'&gt;{nft.description}&lt;/p&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div className='p-4 bg-black'&gt;
                          &lt;p className='text-3x-1 mb-4 font-bold text-white'&gt;{nft.price} ETH&lt;/p&gt;
                          &lt;button className='w-full bg-purple-500 text-white font-bold py-3 px-12 rounded'
                          onClick={()=&gt; buyNFT(nft)} &gt;Buy
                          &lt;/button&gt;
                        &lt;/div&gt;
                  &lt;/div&gt;
                ))
              }
            &lt;/div&gt;
            &lt;/div&gt;
      &lt;/div&gt;
    )
  }
  </code></pre>