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

Do not render widget when no token config found #3056

Draft
wants to merge 3 commits into
base: development
Choose a base branch
from

Conversation

emreboga
Copy link
Collaborator

@emreboga emreboga commented Dec 10, 2024

This is a very unlikely case unless a user tempers with the localStorage entry. It was discovered while testing Portal with an invalid localStorage entry. To fix this potential problem we are adding another layer of verification to filter out the entries with no token configs.

Copy link

netlify bot commented Dec 10, 2024

Deploy Preview for wormhole-connect ready!

Name Link
🔨 Latest commit 8e90bf6
🔍 Latest deploy log https://app.netlify.com/sites/wormhole-connect/deploys/675847df8fdb5f0008e20ccd
😎 Deploy Preview https://deploy-preview-3056--wormhole-connect.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Dec 10, 2024

👷 Deploy request for wormhole-connect-mainnet pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 8e90bf6

@emreboga emreboga force-pushed the emre/widget-check-tokenconfig branch 3 times, most recently from b59270d to 889be5b Compare December 10, 2024 13:52
Signed-off-by: Emre Bogazliyanlioglu <[email protected]>
Signed-off-by: Emre Bogazliyanlioglu <[email protected]>
@emreboga emreboga force-pushed the emre/widget-check-tokenconfig branch from 889be5b to 8e90bf6 Compare December 10, 2024 13:53
@@ -117,7 +117,6 @@ const GasSlider = (props: {
const tokenAmount = amount.display(
amount.truncate(props.destinationGasDrop, 6),
);
console.log(tokenAmount);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This one was creating some noise in the console when in Review Transaction view. Please let me know if you think it'd still be useful when debugging.

@emreboga emreboga requested a review from artursapek December 11, 2024 19:19
@aadam-10 aadam-10 marked this pull request as draft December 23, 2024 17:08
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