[General] Running local network with zksync-cli and foundry-zksync produces following error: Transaction HALT: Account validation error: Account validation returned invalid magic value. #647
Replies: 3 comments 1 reply
-
The error message you're encountering, "Account validation error: account validation returned an invalid magic value," typically indicates an issue with the account validation process during the transaction. This can often be related to the signature or the setup of the account you are using. Here are a few steps you can take to troubleshoot and resolve this issue:
If these steps do not resolve the issue, it might be beneficial to provide more detailed logs or error messages to the ZKsync support team or community for further assistance. Your feedback helps us serve you better. If this fully addresses your question, please give it a thumbs up. If it doesn't, please give it a thumbs down. This will inform the community and team so we can improve our support. |
Beta Was this translation helpful? Give feedback.
-
@MajorDomDePIN what did you do to get this resolved? |
Beta Was this translation helpful? Give feedback.
-
Thank you for your Answer! I recloned the project folder into my wsl so i only working inside of it and not in windows anymore, but this couldn't solve the problem. i tried to run the container for the zksync-docker-machine in wsl as well as in windows, but both times i had the same issues with both of them. currently i only can deploy with the first private key which is listed on https://docs.zksync.io/build/test-and-debug/in-memory-node, if i try the second one instead i got a "not enought balance" error... Unfortunately, these private keys do not match the private keys that are listed in the docker container. Regarding the keys from the container, they seem to work completely arbitrarily or randomly here is a script i made to try to deploy to every private key from the domain as well as the local node: And if a transaction goes through, no broadcast file is created for chain 260, as already mentioned |
Beta Was this translation helpful? Give feedback.
-
Environment
Testnet
Provide a brief description of the functionality you're trying to implement and the issue you are running into.
Hi all,
I've been using Cyfrin's Foundry Fundamentals course (https://updraft.cyfrin.io/courses/foundry/foundry-simple-storage/zksync-local-deploy) for a few days now to improve my knowledge of Foundry.
A few days ago I was already able to deploy to the local zksync-chain (zksync-cli) using foundry, as described in the course.
Today I wanted to continue at this point in the course and therefore start the Docker node for the second time and interact with it. The first time this worked as described without any problems. Now, depending on which zksync private key I use, I get the following output:
command:
forge create ./src/SimpleStorage.sol:SimpleStorage --private-key 0x4bbbf85ce3377467afe5d46f804f221813b2bb87f24d81f60f1fcdbf7cbf4356 --rpc-url http://127.0.0.1:8011/ --legacy --zksync
Output:
Server has returned an error response: Error code 3: Execution error: transaction HALT: account validation error: insufficient funds for charge + value
Command:
forge create ./src/SimpleStorage.sol:SimpleStorage --rpc-url http://127.0.0.1:8011/ --private-key 0x7726827caac94a7f9e1b160f7ea819f172f7b6f9d2a97f992c38edeab82d4110 --legacy --zksync
Output:
Server has returned an error response: Error code 3: Execution error: transaction HALT: Account validation error: account validation returned an invalid magic value. Most of the time this means that the signature is incorrect.
I am working with foundryup-zksync and just don't know why this problem is occurring. If anyone can help me with this I would be more than happy
Repo Link (Optional)
No response
Additional Details
No response
Beta Was this translation helpful? Give feedback.
All reactions