CRYPTO NEWS

Getting An Invalid BigNumber error code when attemping to return a uint256

function requestVotes(uint256 _id)     public     onlyOwner   {      proposalIdURL = proposalContract.Proposals(_id);     string memory voteURL = string(abi.encodePacked("https://hub.snapshot.org/graphql?operationName=Votes&query=query%20Votes%20%7B%0A%20%20proposal%20(id%3A%20%22",proposalIdURL,"%22)%20%7B%0A%20%20%20%20scores%0A%20%20%20%20quorum%0A%20%20%7D%0A%7D%0A"));      Chainlink.Request memory req = buildChainlinkRequest(stringToBytes32(jobId), address(this), this.fulfillVotes.selector);     req.add("get", voteURL);     lastRequestIdSent = sendOperatorRequest(req, ORACLE_PAYMENT);   } 

In this code I’m recieviving votes of a given ID

In the bottom code, I attempting to call the same code on the front-end but keep receiving errors!I think my issue resolve around not knowing how to deal with uint256 numbers on the frontend

 const requestVotes = async() => {      try {        const signer = await getProviderOrSigner(true);       const voteContract = new Contract(          FETCHVOTESADDRESS,         fetchvotesabi,         signer       );       const number = 0;         number = ethers.utils.formatEther(number);         const tx = voteContract.requestVotes(number);         setLoading(true);         await tx.wait();         setLoading(false);      }catch(err) {        console.error(err);     }   } 

Error being recieved ==

 index.js?dd68:219 Uncaught (in promise) Error: invalid BigNumber string (argument="value", value="0.0", code=INVALID_ARGUMENT, version=bignumber/5.6.0)     at Logger.mak 

BigHomieKeys

#BigHomieKeys #TheSupremeTeam Artist Name: BigHomieKeys Who are you? Since I Have Always Give the best advice but never truly followed my own til i become homeless at the age of 17 I realize that you need to show yourself more than others what your worth is then go follow it i'm pursuing my music career::Listen

#BigHomieKeys #TheSupremeTeam
Artist Name: BigHomieKeys

Who are you?

Since I Have Always Give the best advice but never truly followed my own til i become homeless at the age of 17
I realize that you need to show yourself more than others what your worth is then go follow it i'm pursuing my music career for exposure and business opportunities

Where are you from?

schenectady New york isn't An area You want to be around a lot of people are influence by someone to do something to someone they love this is the city od unloyalty that's why no on comes to the trenches
rick ross came and never came back same as jim jones AND OTHER RAPPERS
the safest place upstate new york is albany even that living will make you recognize family ain't blood nor loyal est bet is to stay to yourself and always stay ready…..

How can we follow you?

FaceBook
KeysDaOdd
Instagram
SoundofGod972IM

Song Title: https://spoti.fi/3PAKEjF

Listen to BigHomieKeys:

Source: https://supremepr.us/

Getting An Invalid BigNumber error code when attemping to return a uint256

Shopping cart
There are no products in the cart!
Continue shopping
0