question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ganache does not return a detailed exception

See original GitHub issue

Hi! I found an error that Ganache does not return a detailed exception when calling contract function.

I use Ganache in Docker trufflesuite/ganache:v7.0.4

And Run it how:

version: '3.7'

services:
  ganache:
    image: trufflesuite/ganache:v7.0.4
    restart: always
    volumes:
      - ./blockchain-data:/blockchain-data
    env_file:
      - .env
    ports:
      - "8545:8545"
    command:
      --database.dbPath=/blockchain-data --miner.blockGasLimit=0x3B9ACA00 --port 8545
      --account="0x${TEST_CLOUD_ACCOUNT_PRIVATE_KEY_1},1000000000000000000000000000"
      --account="0x${TEST_CLOUD_ACCOUNT_PRIVATE_KEY_2},1000000000000000000000000000"
      --account="0x${TEST_CLOUD_ACCOUNT_PRIVATE_KEY_3},1000000000000000000000000000"

Everything works, but does not return a detailed exception error when calling the contract.

What do I get instead of getting a Time Limit exception:

AssertionError: Expected transaction to be reverted with Time limit, but other exception was thrown: Error: missing revert data in call exception; Transaction reverted without a reason string [ See: https://links.ethers.org/v5-errors-CALL_EXCEPTION ] (error={"name":"ProviderError","code":-32000,"_isProviderError":true,"data":"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000a54696d65206c696d697400000000000000000000000000000000000000000000"}, data="0x", code=CALL_EXCEPTION, version=providers/5.6.4)

P.s in old package trufflesuite/ganache-cli everything works fine and I get a detailed error!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:29 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
joelamouchecommented, Dec 20, 2022

I opened an issue in the hardhat repo because I still have the same problem: https://github.com/NomicFoundation/hardhat/issues/3441

0reactions
davidmurdochcommented, Dec 23, 2022

@joelamouche can you run Ganache with the --verbose flag and then paste the ganache logs here?

Read more comments on GitHub >

github_iconTop Results From Across the Web

My function does not return a value when I use the Ganache ...
The reason is that in a real-world blockchain network, that randMod function would not return anything to the client.
Read more >
Truffle ganache blockchain loading issue - Stack Overflow
I fixed it by researching "ganache" in my C: disk and deleting all the results (temp files , data , everything) and reinstalling...
Read more >
Common Errors - Uniswap Docs
This is an error with either Metamask or Ganache-CLI. It usually occurs after a local fork is instantiated and contracts are deployed but...
Read more >
Ganache CLI options - Truffle Suite
This reference describes the syntax of the Ganache command line interface (CLI) options for the Ethereum network. Specify options¶. With the exception of...
Read more >
Hardhat Network | Ethereum development environment for ...
Do not send mainnet Ether to the account addresses shown by hardhat node . ... This is an example of a Hardhat Network...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found