Open sarahschwartz opened 2 weeks ago
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:
era_test_node
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" }
era_test_node run
.env
inMemoryNode
deploy/deploy-multisig.ts
http://127.0.0.1:8011
bun run compile
bun hardhat deploy-zksync --script deploy-factory.ts
bun hardhat deploy-zksync --script deploy-multisig.ts
The script should succeed and deploy a new instance of a smart account using the factory.
The last script will fail with the error above.
π 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:π Reproduction Steps
era_test_node run
.env
file and add the private key of a pre-configured rich wallet.inMemoryNode
in the hardhat config.deploy/deploy-multisig.ts
to point to the local node (http://127.0.0.1:8011
).bun run compile
bun hardhat deploy-zksync --script deploy-factory.ts
deploy/deploy-multisig.ts
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.