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 AMPE price not returned from batching server #35

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

ebma
Copy link
Member

@ebma ebma commented Oct 18, 2024

The AMPE price is currently not returned from the batching server. The problem is that the comparison in the supports() function turns the supplied blockchain field of the AssetSpecifier to uppercase letters but the BLOCKCHAIN constant defined in the same file is not in uppercase letters. To make it a little more foolproof, I added the to_uppercase() call to both sides of the comparison. This way, we don't need to keep in mind that the constants should be defined in uppercase letters.

@ebma ebma requested a review from a team October 18, 2024 15:21
Copy link
Member

@TorstenStueber TorstenStueber left a comment

Choose a reason for hiding this comment

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

Good to make this code more robust.

@ebma ebma merged commit 75f3931 into master Oct 18, 2024
1 check passed
@ebma ebma deleted the fix-ampe-price-not-returned branch October 18, 2024 15:29
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