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: ensure receiveAddress query -> string | null #8565

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

0xApotheosis
Copy link
Member

Description

Ensures the receiveAddress query does not return undefined, which can cause issues due to the way TanStack query handles query state.

Issue (if applicable)

Spotted by @NeOMakinG in #8543

Risk

Low

What protocols, transaction types, wallets or contract interactions might be affected by this PR?

None

Testing

Ensure we no longer see the console warning.

Engineering

☝️

Operations

  • 🏁 My feature is behind a flag and doesn't require operations testing (yet)

☝️

Screenshots (if applicable)

Screenshot 2025-01-14 at 15 38 50

@0xApotheosis 0xApotheosis requested a review from a team as a code owner January 14, 2025 04:41
Copy link
Contributor

@gomesalexandre gomesalexandre left a comment

Choose a reason for hiding this comment

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

Tested locally:

  • Noticed no regressions in swapper receive addies ✅

https://jam.dev/c/38c2afc9-1b51-4949-a11b-081b912dccae

  • Console spew is gone ✅
image

@gomesalexandre gomesalexandre merged commit c414093 into develop Jan 14, 2025
3 checks passed
@gomesalexandre gomesalexandre deleted the receiveAddress-return-null branch January 14, 2025 10:59
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.

2 participants