Skip to content

Unable to deploy the code to era Testnet using any of the tools (zk-forge/hardhat / forge) #218

Closed Answered by dutterbutter
cybertronprime asked this question in Deployments
Discussion options

You must be logged in to vote

You can manually add addresses as you've mentioned you did. To circumvent the issue below and for a cleaner compilation:

Error in plugin @matterlabs/hardhat-zksync-deploy: Failed to update hardhat config file, please use addresses from console output.

Update your HH config from export default { to export const config = { . Be sure to add add export default config; to the bottom of the file. With a named configuration the plugin will automatically add the deployed libraries accordingly. So for your config:

import * as dotenv from "dotenv";
// import "@nomicfoundation/hardhat-toolbox";
// import "@nomicfoundation/hardhat-foundry";
import "@matterlabs/hardhat-zksync-deploy";
import "@matter…

Replies: 11 comments 15 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@dutterbutter
Comment options

@cybertronprime
Comment options

@dutterbutter
Comment options

@cybertronprime
Comment options

Comment options

You must be logged in to vote
3 replies
@cybertronprime
Comment options

@cybertronprime
Comment options

@cybertronprime
Comment options

Comment options

You must be logged in to vote
1 reply
@dutterbutter
Comment options

Comment options

You must be logged in to vote
4 replies
@cybertronprime
Comment options

@dutterbutter
Comment options

Answer selected by dutterbutter
@gte620v
Comment options

@bxpana
Comment options

Comment options

You must be logged in to vote
1 reply
@cybertronprime
Comment options

Comment options

You must be logged in to vote
2 replies
@bxpana
Comment options

@dutterbutter
Comment options

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployment Questions for deployment devtools Questions related to zkSync Tooling WIP The issue is currently being worked on
8 participants