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: support withdrawal claim from any wallet #2138

Merged
merged 6 commits into from
Dec 19, 2024

Conversation

fionnachan
Copy link
Member

Closes FS-1036

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

vercel bot commented Dec 12, 2024

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

Name Status Preview Updated (UTC)
arbitrum-token-bridge ✅ Ready (Inspect) Visit Preview Dec 19, 2024 10:52am

const { chain } = useNetwork()
const { switchNetworkAsync } = useSwitchNetworkWithConfig()
const networkName = getNetworkName(chain?.id ?? 0)
const { sanitizedAddress } = useTransactionHistoryAddressStore()

const viewingAnotherAddress =
connectedAddress &&
sanitizedAddress &&
Copy link
Contributor

Choose a reason for hiding this comment

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

NIT: Wouldn't it be better to rename the addresses to searchedAddress and connectedAddress, since that's more apt?

Comment on lines 180 to 183
sanitizedAddress &&
connectedAddress &&
sanitizedAddress.toLowerCase() !== connectedAddress.toLowerCase()
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Replace it with viewingAnotherAddress

const { sanitizedAddress: searchedAddress } =
useTransactionHistoryAddressStore()

const viewingAnotherAddress =
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
const viewingAnotherAddress =
const isViewingAnotherAddress =

@spsjvc spsjvc merged commit ef1600a into master Dec 19, 2024
70 of 73 checks passed
@spsjvc spsjvc deleted the allow-claim-using-any-wallet branch December 19, 2024 11:55
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.

4 participants