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

fix(TokenClient): Use correct signer on direct token queries #1531

Merged
merged 2 commits into from
May 17, 2024

Conversation

pxrl
Copy link
Contributor

@pxrl pxrl commented May 16, 2024

The recent change to use multicall incorrectly uses the hub chain signer for remote chain tokens. This results in very confusing and counter-intuitive failures when the remote chain does not support multicall.

Also:

  • There's no need to query the HubPoolClient for L2 token addresses when the target chain is the hub chain itself.
  • Remove a redundant Promise.all().

There's no need to query the HubPoolClient for L2 token addresses when
the target chain is the hub chain itself. Also, remove a redundant
Promise.all().
@pxrl pxrl requested a review from bmzig May 16, 2024 17:06
@pxrl pxrl changed the title refactor(TokenClient): Skip token resolution on HubChain fix(TokenClient): Use correct signer on direct token queries May 16, 2024
Copy link
Contributor

@mrice32 mrice32 left a comment

Choose a reason for hiding this comment

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

LGTM!

@mrice32 mrice32 merged commit 1f8aed4 into master May 17, 2024
4 checks passed
@mrice32 mrice32 deleted the pxrl/tokenClientHub branch May 17, 2024 14:25
Copy link
Contributor

@james-a-morris james-a-morris left a comment

Choose a reason for hiding this comment

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

LGTM - a bit late

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.

4 participants