Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call by golang reverts unknown reason using hardhat-deploy in local env #505

Open
Aliceonly opened this issue Dec 14, 2023 · 0 comments
Open

Comments

@Aliceonly
Copy link

Describe the bug
I'm using "hardhat-deploy": "^0.11.44" and "@nomicfoundation/hardhat-toolbox-viem": "^2.0.0" libs
which are recommanded by hardhat official templates (with viem)
it automatically run deploy scripts when I run command "yarn hardhat node --hostname 0.0.0.0"
but calls to local hardhat network in golang seems reverted with no reason
It leads to hard to debug in local env
but it can call in online chains

To Reproduce
Steps to reproduce the behavior:

  1. running 'yarn hardhat node --hostname 0.0.0.0' , it deploy contracts before local accounts shows up and didn't cost (may be the problem)
  2. using generated abi in go to call methods but reverted with no reason (func sig error)
  3. but it can successfully call in online chain but failed in hardhat node

versions

  • hardhat-deploy": "^0.11.44
  • @nomicfoundation/hardhat-toolbox-viem
  • "viem": "^1.19.11"
  • "hardhat": "^2.19.1"
  • go-ethereum

Additional context
Plz advise me some paths to debug with golang in local env using viem and hardhat-deploy
Check hardhat-deploy to fully support for Viem which recommands by hardhat official

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant