[General] <create contract on zksync Sepolia failed with foundry> #829
-
Team or ProjectNo response EnvironmentTestnet L2 block numberNo response Provide a brief description of the functionality you're trying to implement and the issue you are running into.Im use foundry to build contract on zksync Sepolia,this is command,
but i get failed,the error is:
My forge version:forge 0.2.0 (00efa0d5 2024-12-07T15:44:15.859516877Z)
This is the deploy script:
Repo Link (Optional)No response Additional DetailsNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The error you're encountering, "Failed to serialize transaction: toAddressIsNull," typically indicates that the transaction is missing a necessary address parameter, such as the contract address for deployment. This can happen if the deployment script does not properly specify the address or if there's an issue with how the script interacts with the network. Here are a few steps you can take to troubleshoot and resolve this issue:
If the problem persists after trying these steps, consider seeking further assistance by posting a detailed question with the error logs and setup details on the ZKsync developers discussions on Github. This platform can provide more in-depth support from other developers who might have faced similar issues. 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.
-
Hey you have to include
|
Beta Was this translation helpful? Give feedback.
Hey you have to include
--zksync
when making use of foundry-zksync. The command would then be:forge script script/Counter.s.sol --rpc-url $ZKSYNC_TESTNET --account zksyncSep --broadcast -vvv --zksync