Skip to content
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

[DRAFT] contracts: add zksync messengers #2195

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

manuelwedler
Copy link
Contributor

Closes #1797

I don't want the current progress to get lost, so I am opening this draft.

The issue at the moment is that the l2 gas limit is needed for sending the request to L2. They don't provide a contract level function to calculate it, only the rpc method zks_estimateGasL1ToL2. It is worth it to check the implementation of the rpc server to see how they calculate it. Maybe something similar can be written in the contract to estimate the l2 gas limit.
rpc server implementation is here: https://github.com/matter-labs/zksync-era/blob/7f1d44d5cafd80df2e846bb35ab81e21676bfc36/core/bin/zksync_core/src/api_server/web3/namespaces/zks.rs#L82

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

zkSync: L1 & L2 Messenger contracts
1 participant