-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Error: Failed to create portal config while running zkstack ecosystem init --dev #3349
Comments
Thank you for reporting an issue! The error you encountered occurs when specifying a base token address that doesn't exist on L1. This likely happened when you ran Here's the easiest way to start a chain with a custom base token:
And definitely agree that the error message could have been more descriptive :) |
I'm also facing similar issue, how to deploy test tokens in the L1 to make it custom token on the L2. Should I include ERC20 contract in the ecosystem configs ? If so, where shall I add it ? |
Thanks @sanekmelnikov, that works if we set ETH as base token. For setting up the custom token I've followed this doc: https://code.zksync.io/tutorials/custom-zk-chain/customizing-your-chain. I've used the governer wallet to deploy the token contract on L1 and used the same address while creating the chain, but when doing If I send the balance to that account and try again, getting BridgeHubAlreadyRegistered Error |
@sanekmelnikov Can you help me with this? |
I went through the tutorial and noticed a confusing part. The issue is that it instructs you to put the ecosystem governor's private key in The correct wallet to fund is the ecosystem governor's wallet. To check the balance after deploying the token, use the following command: Also keep in mind that Customizing Your ZK Chain is a continuation of Getting Started with ZK Chains, so all steps from the latter must be completed first. |
Works. Thanks @sanekmelnikov |
π Bug Report
π Description
I'm trying to create a custom zk chain, but after creating the ecosystem and trying to initialise the chain, I'm getting the following error.
β Initializing chain xxx
β
β Failed to create portal config
β
β² 0: Invalid name: please ensure the contract and method you're calling exist! failed to decode empty bytes. if you're using jsonrpc this is likely due to jsonrpc returning
0x
in case contract or method don't existβ
β Failed to run command
π Reproduction Steps
I have followed the steps from here https://code.zksync.io/tutorials/custom-zk-chain to create a custom chain.
π€ Expected Behavior
The ecosystem should deploy the contracts
π― Current Behavior
Getting above error
π₯οΈ Environment
Ubuntu 22.04
π Additional Context
Add any other context about the problem here. If applicable, add screenshots to help explain.
π Log Output
The text was updated successfully, but these errors were encountered: