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

Bug in get_balance_allowance function #83

Open
3 tasks
senqtus opened this issue Jul 15, 2024 · 2 comments
Open
3 tasks

Bug in get_balance_allowance function #83

senqtus opened this issue Jul 15, 2024 · 2 comments

Comments

@senqtus
Copy link

senqtus commented Jul 15, 2024

Overview

get_balance_allowance Function has input variable params that can be null, but function treats this variable as not nullable.

Description

In get_balance_allowance function if params.signature_type == -1: will throw an exception if params is null, therefore it should be if params and params.signature_type == -1: and also test should be covering this space.

Notes

Action items

  • Tag issue (bug, enhancement, feature, etc.)
  • Initial discussion/assign team member
  • Move discussion to PR if necessary and when ready
@nikosbosse
Copy link

Are there any updates on this?

@corneliusroemer
Copy link

Indeed, just hit this bug - this is a clear type error. I'm not sure I agree with OP that the solution is if params and params.signature_type == -1 - instead if no balance params are passed one might want to infer signature type as well, in which case the fix would be if params is None or params.signature_type == -1

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

No branches or pull requests

3 participants