-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deploy command fails when trying to deploy custom factory contract #85
Comments
i am having trouble reproducing this error. Can you provide a simplified example of your contract so i can try it, or possibly a repo with an example? |
This is the contract I am trying to deploy:
and here's the interface it imports:
|
Hey @0xDEnYO - I've tried reproducing your issue - but I couldn't: I've run:
and then:
to deploy on local network - and it worked. |
but I did find one scenario, when I get the same error -- when contract name differs.
|
I've just merged: #86 - that should show better error messages. |
found the problem: Your file is called Create3Factory, and you call:
instead, you should call:
|
We tried to keep as much Foundry convention as possible to allow for future integrations. in this case so change from:
to:
|
@sammyshakes - good point. we should probably change it, so that ETH_RPC_URL is always pointing at 'zksync era' - and we should introduce another variable (L1_URL ?) for the case of deposit/withdrawal. |
this works fine now. Thanks a lot for your help. |
yes can definitely do something like this |
Done in #94 |
Component
Other (please describe)
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (31fcf5a 2023-05-19T00:10:33.861185000Z)
What command(s) is the bug in?
zkforge zk-create
Operating System
macOS (Apple Silicon)
Describe the bug
I am trying to deploy our custom version of a factory contract.
It imports from solmate which I have added as a submodule. The compiler runs fine, the artifact is produced and looks good.
However, when I try to deploy using this command, I get an error:
Command:
../foundry-zksync/target/debug/zkforge zk-create src/is-system/CREATE3Factory.sol:CREATE3Factory --private-key ...
Output:
Here the artifact:
I believe the error happens in zkCreate.rs in function get_bytecode_from_contract
The text was updated successfully, but these errors were encountered: