-
Notifications
You must be signed in to change notification settings - Fork 83
feat: update getBalance
method to require blockNumberOrTagOrHash
parameter instead of allowing null (#3838)
#3859
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
base: main
Are you sure you want to change the base?
Conversation
…parameter instead of allowing null (hiero-ledger#3838) Signed-off-by: Michał Walczak <michal.walczak@arianelabs.com>
🎉 Snyk checks have passed. No issues have been found so far.✅ security/snyk check is complete. No issues have been found. (View Details) ✅ license/snyk check is complete. No issues have been found. (View Details) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM looks like unit tests need some updates as well
@@ -91,12 +91,12 @@ export class AccountService implements IAccountService { | |||
* Current implementation does not yet utilize blockNumber | |||
* | |||
* @param {string} account The account to get the balance from | |||
* @param {string | null} blockNumberOrTagOrHash The block number or tag or hash to get the balance from | |||
* @param {string} blockNumberOrTagOrHash The block number or tag or hash to get the balance from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thibk we should a test to enforce required. Somethin like cannot be bull, blockNumberOrTagOrHashIsRequired
Codecov ReportAttention: Patch coverage is
❌ Your patch check has failed because the patch coverage (50.00%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage. @@ Coverage Diff @@
## main #3859 +/- ##
=======================================
Coverage ? 41.29%
=======================================
Files ? 83
Lines ? 4770
Branches ? 970
=======================================
Hits ? 1970
Misses ? 2536
Partials ? 264
🚀 New features to boost your workflow:
|
Description:
Updated
getBalance
method and related tests to accommodate parameter type change fromstring | null
tostring
.Related issue(s):
Fixes #3838
Checklist