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

gas estimation error while deploying smart accounts using default node #347

Open
sarahschwartz opened this issue Sep 17, 2024 · 0 comments
Labels
bug 🐛 Something isn't working medium 🚩 Indicates moderately difficult item p0 ⚪ Indicates blocker priority item

Comments

@sarahschwartz
Copy link

sarahschwartz commented Sep 17, 2024

🐛 Bug Report for zkSync Era In-Memory Node

📝 Description

Trying to deploy a smart account to a local node with era_test_node only works by forking the sepolia testnet first when using the latest hardhat plugin. Running the standard node results in an error estimating gas:

Error: execution reverted: Deployment failed (payload={ "id": 3, "jsonrpc": "2.0", "method": "zks_estimateFee", "params": [ { "data": "0x76fb8b6500000000000000000000000000000000000000000000000000000000000000000000000000000000000000007a192369cb8e3c45eabec4750d8673d084e996fc000000000000000000000000a34a855daabd08b7e716bca0ab92ff44e47ad1d7", "from": "0xbc989fde9e54cad2ab4392af6df60f04873a033a", "to": "0x9c1a3d7c98dbf89c7f5d167f2219c29c2fe775a7" } ] }, error={ "code": 3, "data": "0x08c379a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000114465706c6f796d656e74206661696c6564000000000000000000000000000000", "message": "execution reverted: Deployment failed" }

🔄 Reproduction Steps

  1. Clone this repo: https://github.com/dutterbutter/min-custom-aa & install deps
  2. Start a local node with era_test_node run
  3. Add a .env file and add the private key of a pre-configured rich wallet.
  4. Change the default network to inMemoryNode in the hardhat config.
  5. Update the provider url in deploy/deploy-multisig.ts to point to the local node (http://127.0.0.1:8011).
  6. Run bun run compile
  7. Run bun hardhat deploy-zksync --script deploy-factory.ts
  8. Add the deployed factory address to deploy/deploy-multisig.ts
  9. Run bun hardhat deploy-zksync --script deploy-multisig.ts

🤔 Expected Behavior

The script should succeed and deploy a new instance of a smart account using the factory.

😯 Current Behavior

The last script will fail with the error above.

@sarahschwartz sarahschwartz added the bug 🐛 Something isn't working label Sep 17, 2024
@MexicanAce MexicanAce added medium 🚩 Indicates moderately difficult item p0 ⚪ Indicates blocker priority item labels Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working medium 🚩 Indicates moderately difficult item p0 ⚪ Indicates blocker priority item
Projects
None yet
Development

No branches or pull requests

2 participants