matter-labs / matter-labs/zksync-cli
zksync-cli deposit does not work with the dockerized node
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 168
- Forks
- 99
- PR merge metrics
- No merged PRs in 30d
Description
### ๐ Bug Report for zkSync CLI
#### ๐ Description
Cannot make deposits in the local development network.
#### ๐ Reproduction Steps
I install zksync-era and follow all the instructions, e.g.,
```
zk && zk init
```
I run the server
```
zk server --components=api,eth,tree,state_keeper,housekeeper,commitment_generator,proof_data_handler
```
Then I try to make a deposit, but the command fails:
```
npx zksync-cli bridge deposit --to 0x36615Cf349d7F6344891B1e7CA7C72883F5dc049 --amount 100 --token 0x0000000000000000000000000000000000000000 --pk 0x7726827caac94a7f9e1b160f7ea819f172f7b6f9d2a97f992c38edeab82d4110 --chain dockerized-node
Deposit:
From: 0x36615Cf349d7F6344891B1e7CA7C72883F5dc049 (L1 Local)
To: 0x36615Cf349d7F6344891B1e7CA7C72883F5dc049 (Dockerized local node)
Amount: 100 ETH (Ether)
โ Deposit failed
โ There was an error while depositing funds:
โ call revert exception [ See: https://links.ethers.org/v5-errors-CALL_EXCEPTION ] (method="baseToken(uint256)", data="0x", errorArgs=null, errorName=null, errorSignature=null, reason=null, code=CALL_EXCEPTION, version=abi/5.7.0)
```
#### ๐ค Expected Behavior
Successful deposit
#### ๐ฏ Current Behavior
Unsuccessful deposit
#### ๐ฅ๏ธ Environment
- **Package version**: latest version
- **Node version**: v18.20.4
- **NPM/Yarn version**: npm 10.7.0 / 1.22.19
- **Operating System & Version**: Ubuntu 22.04 LTS
- **Other relevant environment details**:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up โ it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Use the `zk server` setup and `npx zksync-cli bridge deposit ... --chain dockerized-node` reproduction as the entry point. Trace the dockerized-node deposit flow around the failing `baseToken(uint256)` call, then verify that the command completes successfully against the local network.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, typescript
- Domain
- blockchain, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100