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

"Transfer value meets or exceeds account balance" error message needs more context #1855

Closed
miohtama opened this issue Jan 10, 2024 · 0 comments · Fixed by #1860
Closed

"Transfer value meets or exceeds account balance" error message needs more context #1855

miohtama opened this issue Jan 10, 2024 · 0 comments · Fixed by #1860
Labels
category: feature New feature or request

Comments

@miohtama
Copy link
Contributor

miohtama commented Jan 10, 2024

Overview

  • Currently, if there is an out-of-balance error message, it is not helpful enough to resolve the issue.
 (AccountsError) Transfer value meets or exceeds account balance.
Are you using the correct provider/account combination?
(transfer_value=1000000000, balance=0).

Specification

While the error message is technically correct, for the user, it is not possible to tell if the provider/account combination is correct because this combination is missing from the error message, not giving enough context to fix the error and understand what Ape framework is trying to do.

The error message should tell:

  • What account address is it trying to check
  • What chain it is trying to check
  • (And if possible): What provider it is using to do this check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant