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

cli: make nep1X balance commands work without a wallet, fix #3275 #3659

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

roman-khimov
Copy link
Member

Checking the balance should be easy without any wallets involved, the data is available anyway.

Adding the command to "query nep1X" is not so trivial, so let's have it this way for now.

Copy link

codecov bot commented Nov 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.18%. Comparing base (95098d4) to head (ddaf9c0).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3659      +/-   ##
==========================================
+ Coverage   83.13%   83.18%   +0.05%     
==========================================
  Files         334      334              
  Lines       46563    46576      +13     
==========================================
+ Hits        38708    38746      +38     
+ Misses       6278     6258      -20     
+ Partials     1577     1572       -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@roman-khimov roman-khimov force-pushed the make-balance-work-without-wallet branch 3 times, most recently from a581fb7 to f36b7db Compare November 4, 2024 08:42
Copy link
Member

@AnnaShaleva AnnaShaleva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise LGTM.

cli/nep_test/nep17_test.go Outdated Show resolved Hide resolved
cli/nep_test/nep17_test.go Show resolved Hide resolved
cli/wallet/nep11.go Outdated Show resolved Hide resolved
@AnnaShaleva AnnaShaleva added this to the v0.107.0 milestone Nov 5, 2024
@AnnaShaleva AnnaShaleva added cli Command line interface and removed cli Command line interface labels Nov 5, 2024
@AnnaShaleva AnnaShaleva removed this from the v0.107.0 milestone Nov 5, 2024
Checking the balance should be easy without any wallets involved, the data
is available anyway.

Tests are extended a bit as well.

Adding the command to "query nep1X" is not so trivial, so let's have it this
way for now.

Signed-off-by: Roman Khimov <[email protected]>
@roman-khimov roman-khimov force-pushed the make-balance-work-without-wallet branch from f36b7db to ddaf9c0 Compare November 5, 2024 10:12
@AnnaShaleva AnnaShaleva merged commit cee296e into master Nov 5, 2024
34 checks passed
@AnnaShaleva AnnaShaleva deleted the make-balance-work-without-wallet branch November 5, 2024 10:24
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

Successfully merging this pull request may close these issues.

2 participants