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

ZKsync: provide public actions for fetching token addresses on L1 and L2 chains #3133

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

danijelTxFusion
Copy link
Contributor

To enable seamless bridging of assets across chains, it is necessary to retrieve the corresponding token address on the other chain for a given asset. This involves implementing two public actions to facilitate the mapping between L1 and L2 token addresses.

Implementend the following public actions:

getL1TokensAddress() - returns the L1 token address equivalent for a L2 token address.
getL2TokensAddress() - returns the L2 token address equivalent for a L1 token address.

Copy link

changeset-bot bot commented Dec 16, 2024

🦋 Changeset detected

Latest commit: fe04f25

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
viem Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Dec 16, 2024

@danijelTxFusion is attempting to deploy a commit to the Wevm Team on Vercel.

A member of the Team first needs to authorize it.

@danijelTxFusion danijelTxFusion force-pushed the zksync/l1-l2-token-addresses branch from 348c462 to fe04f25 Compare December 22, 2024 20:30
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.

1 participant