You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
Overview
get_balance_allowance
Function has input variableparams
that can be null, but function treats this variable as not nullable.Description
In
get_balance_allowance
functionif params.signature_type == -1:
will throw an exception ifparams
is null, therefore it should beif params and params.signature_type == -1:
and also test should be covering this space.Notes
Action items
The text was updated successfully, but these errors were encountered: