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

[FEATURE] makes getIsToken spec return false if spec is not parseable #163

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

aristidesstaffieri
Copy link
Contributor

What
Makes getIsTokenSpec return false if it fails to parse the spec, because in this case it should be safe to assume that the contract is not a token.

Why
getIsTokenSpec can be more strict about asserting if a contract is a sep41 implementation.

@aristidesstaffieri aristidesstaffieri self-assigned this Oct 18, 2024
@stellar-jenkins
Copy link

@aristidesstaffieri
Copy link
Contributor Author

@piyalbasu I had to split up the helpers into 2 new files (network & token) in order to be able to mock the internals for the new test with Jest. In es6 it can only mock if the internal is imported so when they are in the same file this becomes harder. I just re-export them from the root of that dir now to allow the exports across the app to not change.

@aristidesstaffieri aristidesstaffieri merged commit f044814 into release/1.4.10 Oct 22, 2024
4 checks passed
@aristidesstaffieri aristidesstaffieri deleted the feature/improve-token-spec-route branch October 22, 2024 14:44
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.

3 participants