Skip to content

[Deployment] Deploying Token contract with Create2Factory #717

Answered by gleenai bot
anna-sve asked this question in Deployments
Discussion options

You must be logged in to vote

It seems like you're encountering an issue with the contract.deployed() function not being recognized in your deployment script for an ERC20 token on ZKsync using zksync-ethers. This issue might be due to the differences in how contract deployment is handled in ZKsync compared to Ethereum.

In ZKsync, the deployment process does not use the deployed() method as typically seen in Ethereum's Ethers.js. Instead, you should be using the getDeployTransaction() method from ContractFactory, and then sending this transaction to the network. Here’s how you can adjust your deployment script:

  1. Generate the Deployment Transaction: You've correctly used getDeployTransaction() to create the deployment …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by anna-sve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployment Questions for deployment
1 participant