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

AccountReadableKVState returns account with AccountNum accountId #9801

Merged
merged 2 commits into from
Nov 22, 2024

Conversation

kselveliev
Copy link
Contributor

Description:
AccountReadableKVState must return the accountId of the account with a type AccountNum
Full issue and reason for solution described in the issue that this pr fixes

This PR modifies:
AccountReadableKVState - use to AccountNumId method for getting the accountId
EntityIdUtils - add toAccountNumId method that takes and entity parameter and return AccountID with accountNum type

Related issue(s):

Fixes #9800

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

Signed-off-by: Kristiyan Selveliev <kristiyan.selveliev@limechain.tech>
@kselveliev kselveliev self-assigned this Nov 22, 2024
@kselveliev kselveliev requested a review from a team as a code owner November 22, 2024 09:46
@kselveliev kselveliev added web3 Area: Web3 API enhancement Type: New feature labels Nov 22, 2024
Copy link

codecov bot commented Nov 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.34%. Comparing base (0253168) to head (0f066b0).
Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #9801      +/-   ##
============================================
+ Coverage     88.72%   92.34%   +3.62%     
- Complexity     1166     7665    +6499     
============================================
  Files           378      932     +554     
  Lines         12135    32196   +20061     
  Branches       1715     4092    +2377     
============================================
+ Hits          10767    29733   +18966     
- Misses         1224     1500     +276     
- Partials        144      963     +819     

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


🚨 Try these New Features:

Signed-off-by: Kristiyan Selveliev <kristiyan.selveliev@limechain.tech>
Copy link

sonarcloud bot commented Nov 22, 2024

Copy link
Contributor

@nickeynikolovv nickeynikolovv left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@bilyana-gospodinova bilyana-gospodinova left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@IvanKavaldzhiev IvanKavaldzhiev left a comment

Choose a reason for hiding this comment

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

LGTM

@steven-sheehy steven-sheehy added this to the 0.119.0 milestone Nov 22, 2024
@steven-sheehy steven-sheehy changed the title feat: AccountReadableKVState returns account with AccountNum accountId AccountReadableKVState returns account with AccountNum accountId Nov 22, 2024
@steven-sheehy steven-sheehy merged commit 47a9e23 into main Nov 22, 2024
33 of 34 checks passed
@steven-sheehy steven-sheehy deleted the 09800-account-readable-kv-state-improvement branch November 22, 2024 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Type: New feature web3 Area: Web3 API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AccountReadableKVState must return pbj account with AccountNum accountId
5 participants