Replies: 15 comments 20 replies
-
Are you sure that your contract is deployed in the same network that your |
Beta Was this translation helpful? Give feedback.
-
I am having the same issue. My project has been working for several months just fine. I decided to upload my project to be hosted on fleek on July 27th. I am using hardhat, and the only modification I had to do was to install ethers in the frontend library (I am not sure if this is the source of my error. I might've just configure the context in Fleek). Anyways, I stopped working on it for several days (busy on other stuff), and now that I am trying to launch the app in my localhost blockchain, it doesn't work.
|
Beta Was this translation helpful? Give feedback.
-
Nevermind. I was deploying my dapp in the local host, but my wallet was set to mainnet. Just switched to localhost and that fixed it. |
Beta Was this translation helpful? Give feedback.
-
(moving to discussions) |
Beta Was this translation helpful? Give feedback.
-
I deployed on polygon ok a few days ago and everything was right I'm trying to do exactly the same changing only the max number of NFTs available in the contract and it fails to even compile: $ npx hardhat run scripts/run.js --network polygon Compiling 15 files with 0.8.4 And furher on, if I try to verify: $ npx hardhat verify --network polygon 0xD8F0C83513AaA3aAde3B7BF016ca999CEDe4961E "ipfs://QmWKW6nqqHnpRoUVjnNeLE46KaDfy2oMWAysCt7qjmk8nz/" Error in plugin @nomiclabs/hardhat-etherscan: The address 0xD8F0C83513AaA3aAde3B7BF016ca999CEDe4961E has no bytecode. Is the contract deployed to this network? The selected network is polygon. what can it possibly be? Cheers |
Beta Was this translation helpful? Give feedback.
-
Could it be a gas issue? Gas was extremely high on Plolygon at the ime |
Beta Was this translation helpful? Give feedback.
-
Its probably because you are using different test network. for example, if you used e.g rinkeby to deploy your contract and switched to mainnet when using it, that error will occur |
Beta Was this translation helpful? Give feedback.
-
We're having an issue right now where our WRITE transactions are going thru the embedded metamask provider and thus to the proper localhost devnet RPC we have configured... But when we READ with same initialization, getting this exception. |
Beta Was this translation helpful? Give feedback.
-
Unhandled Rejection (Error): call revert exception [ See: https://links.ethers.org/v5-errors-CALL_EXCEPTION ] (method="TokenID()", data="0x", errorArgs=null, errorName=null, errorSignature=null, reason=null, code=CALL_EXCEPTION, version=abi/5.6.4) is there any solution for this problem? |
Beta Was this translation helpful? Give feedback.
-
I think finally I found the solution for this error! Error: call revert exception [ See: https://links.ethers.org/v5-errors-CALL_EXCEPTION ], data="0x", errorArgs=null, errorName=null, errorSignature=null, reason=null, code=CALL_EXCEPTION, version=abi/5.7.0) *You must not start either your react or next project or anything else before following this, so before doing anything just restart VSCode and clear your terminal! First go to your project directory and run It's important to start your project following each steps in order, otherwise I always got the above error. |
Beta Was this translation helpful? Give feedback.
-
This also happens when you make an external view call but the function modifies the state. |
Beta Was this translation helpful? Give feedback.
-
Use this instead of Web3Provider, |
Beta Was this translation helpful? Give feedback.
-
Everything is okay, deployed contract network fit the wallet network. And it works that i want to write contract but external view calls gives me this error. Why? Write okey View throw an error.. |
Beta Was this translation helpful? Give feedback.
-
I'm also experiencing the same problem, the strange thing is that there is no problem with my contract address, and I am connected to the correct metamask account, but my alchemy update information very slow, and my error is as follows:
Here is my code:
I have a couple of other js files but they all work fine, I really don't know what the reason is, I hope someone knows what the problem is. |
Beta Was this translation helpful? Give feedback.
-
having the same issue but mine was because at the hardhat deployment i have used localhost |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
I am getting an revert exception in my React app even the created instance exists. At
const exchange = await this.getExchange(exchangeAddress);
the error occurs. For a while it had worked and then it didn't anymore. I could not reproduce the error. Testing with Hardhat against local network.Is consumed in:
Reproduction steps
ABI for Exchange contract:
https://github.com/melonecrypto/meloneswap/tree/main/src/abi/src/contracts/Exchange.sol
Error in Browser
Environment:
OS: MAC OS Big Sur
Editor: VS-Code
Testing-Environment: Hardhat : 2.5.0 localhost: url: 'http://127.0.0.1:8545'
Package.json
Beta Was this translation helpful? Give feedback.
All reactions