We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c42b02 commit c3bd225Copy full SHA for c3bd225
1 file changed
src/opengradient/client/opg_token.py
@@ -177,7 +177,8 @@ def ensure_opg_allowance(
177
was needed).
178
179
Raises:
180
- ValueError: If ``approve_amount`` is less than ``min_allowance``.
+ ValueError: If ``approve_amount`` is less than ``min_allowance``,
181
+ or if the wallet has zero OPG balance.
182
RuntimeError: If the approval transaction fails.
183
"""
184
if approve_amount is None:
0 commit comments