title: Error: invalid BigNumber value (argument="value", value={"value":"25000000000000000"}, code=INVALID_ARGUMENT, version=bignumber/5.5.0)
body: <p>I have tried changing the values from 0.025 ether to 1 ether then also its showing the same error.</p>
  <p>Also, I have tried with the rational number like 1/8 still not working.</p>
  <p>LOOKED into some answers but they didn't resolve the error.</p>
  <p>I have the same code in other project and it's working over there.</p>
  <p><strong>Error Which I received</strong></p>
  <pre><code>Uncaught (in promise) Error: invalid BigNumber value (argument=&quot;value&quot;, value={&quot;value&quot;:&quot;25000000000000000&quot;}, code=INVALID_ARGUMENT, version=bignumber/5.5.0)
  
  Could not get the stack frames of error: TypeError: Cannot read properties of null (reading 'length')
  </code></pre>
  <p><em>Image of the Error</em> <a href="https://i.stack.imgur.com/0fGXO.png" rel="noreferrer"><img src="https://i.stack.imgur.com/0fGXO.png" alt="[1]" /></a> <a href="https://i.stack.imgur.com/iKyOy.png" rel="noreferrer"><img src="https://i.stack.imgur.com/iKyOy.png" alt="[2]" /></a></p>
  <p><strong>Here is my Code for the Listing Price</strong></p>
  <pre><code>    uint256 listingPrice = 0.025 ether ; // Here ether is denoting the MATIC
  
  function getListingPrice() public view returns (uint256) {
          return listingPrice;
      }
  </code></pre>
  <p><strong>Here is the Code for fetching the value in UI</strong></p>
  <pre><code>async function putItem(url) {
      const web3Modal = new Web3Modal();
      const connection = await web3Modal.connect();
      const provider = new ethers.providers.Web3Provider(connection);
      const signer = provider.getSigner();
  
      const { royalty } = formInput;
  
      //NFT Contract
      let contract = new ethers.Contract(nftAddress, NFT.abi, signer);
      //minting the certificate
      let transaction = await contract.createToken(url);
      //waiting for the minting transaction to finish
  
      let tx = await transaction.wait();
      let event = tx.events[0];
      let value = event.args[2];
      let tokenId = value.toNumber(); //Token Id Of the NFT
      console.log(tokenId)
  
      //NFT Market Contract
      contract = new ethers.Contract(nftMarketAddress, NFTMarket.abi, signer);
  
      //fetching listing price from the contract
      let listingPrice = await contract.getListingPrice();
      listingPrice = listingPrice.toString();
  
      //listing the certificate. 
      transaction = await contract.createMarketItem(
        nftAddress,
        tokenId,
        { value: (listingPrice) },
        royalty,
        index
      );
      //waiting for the transaction to complete
      await transaction.wait();
      console.log(&quot;completed&quot;)
  
      //navigate back to home page
  
    }
  </code></pre>
  <p>If any more detail required, please comment.</p>