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

[hotfix] fix panic where coin type is too long #330

Merged
merged 1 commit into from
Mar 24, 2024
Merged

Conversation

bowenyang007
Copy link
Collaborator

Summary

If coin type is too long so we’re not tracking it under the new logic (> 1K length). But the lookup logic was still there so it caused some issues.

This skips cases where the mapping isn't there.

Also this only applies to coin v1.

Test

No longer panics

Copy link
Contributor

@CapCap CapCap left a comment

Choose a reason for hiding this comment

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

Is this dangerous in other ways/places?

@bowenyang007
Copy link
Collaborator Author

Is this dangerous in other ways/places?

We wanted to make this super safe, but so far we've never seen this fail (been like 6month+ so I think that this panic was overkill in the first place).

@bowenyang007 bowenyang007 merged commit e20ecb2 into main Mar 24, 2024
7 checks passed
@bowenyang007 bowenyang007 deleted the fix_fa2 branch March 24, 2024 19:10
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