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

feat: check if token is registered on gateways #481

Merged
merged 6 commits into from
Jun 13, 2024

Conversation

brtkx
Copy link
Contributor

@brtkx brtkx commented Jun 12, 2024

No description provided.

@cla-bot cla-bot bot added the cla-signed label Jun 12, 2024
Copy link

vercel bot commented Jun 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
arbitrum-sdk ✅ Ready (Inspect) Visit Preview Jun 13, 2024 5:16pm

@brtkx brtkx marked this pull request as ready for review June 13, 2024 10:38
l2Provider
).calculateL2TokenAddress(erc20L1Address)

return tokenL2AddressFromL1GatewayRouter === l2AddressFromL2Gateway
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should lowercase both just in case

Comment on lines 845 to 852
/**
* Checks if custom gateway has been registered
* @param erc20L1Address
* @param l1Provider
* @param l2Provider
* @returns
*/
public async isCustomGatewayRegistered({
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/**
* Checks if custom gateway has been registered
* @param erc20L1Address
* @param l1Provider
* @param l2Provider
* @returns
*/
public async isCustomGatewayRegistered({
/**
* Checks if the token has been properly registered on both gateways. Mostly useful for tokens that use a custom gateway.
*
* @param erc20L1Address
* @param l1Provider
* @param l2Provider
* @returns
*/
public async isRegistered({

@brtkx brtkx changed the title feat: add isCustomGatewayRegistered function feat: check if token is registered on gateways Jun 13, 2024
@spsjvc spsjvc self-requested a review June 13, 2024 17:18
Copy link
Member

@spsjvc spsjvc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@spsjvc spsjvc merged commit dd6ac28 into main Jun 13, 2024
24 checks passed
@spsjvc spsjvc deleted the isCustomGatewayRegistered branch June 13, 2024 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants