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 1 commit 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: fdc3af8

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 2 times, most recently from fe04f25 to 2873078 Compare December 24, 2024 01:47
@danijelTxFusion danijelTxFusion force-pushed the zksync/l1-l2-token-addresses branch from 2873078 to fdc3af8 Compare December 27, 2024 16:58
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