Include balance of account and how much needed for tx when tx fails for insufficient balance for deploying

Open
#2,142 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust
Domain
cli

Research direction

Start by tracing the CLI upload flow and the insufficient-balance error raised when deploying contracts to mainnet. Identify where the account balance and required fee are available, then verify that a failed upload reports both amounts; consider whether the same behavior should cover other fee-related sending errors.

Written by the indexing model from the issue text.

Description

enhancement
What problem does your feature solve?

When uploading contracts to mainnet an insufficient fee/balance can occur if the account deploying doesn't have enough native asset.

Uploading large contracts can be costly, and so it can be frustrating trying to figure out how much native asset you need to get the error not to occur.

What would you like to see?

When the error occurs during upload, the cli should output an error message saying how much is needed.

It would be ideal to include this on any sending error relating to fees, but at least doing this for uploads would make an impact.

What alternatives are there?

Show users how to figure out how much they need in the error message.

Dominant language
Rust
Stars
123
Forks
141
Avg merge
2d 21h
Merged PRs (30d)
17

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from stellar/stellar-cli

All issues in stellar/stellar-cli

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.