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

fix: Account Alias Mirror Node Queries #950

Merged
merged 10 commits into from
Jun 6, 2024

Conversation

0xivanov
Copy link
Contributor

@0xivanov 0xivanov commented Jun 4, 2024

Description:

The mirror node does not accept der encoded account aliases. We cannot query newly created hollow account info and balanced because of this.

We should use the protobuf response in order to get the num of the account/contract and use it as parameter for the query.

Related issue(s):

Fixes #948

Notes for reviewer:

Checklist

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

Signed-off-by: Ivan Ivanov <ivanivanov.ii726@gmail.com>
Signed-off-by: Ivan Ivanov <ivanivanov.ii726@gmail.com>
Signed-off-by: Ivan Ivanov <ivanivanov.ii726@gmail.com>
Signed-off-by: Ivan Ivanov <ivanivanov.ii726@gmail.com>
Signed-off-by: Ivan Ivanov <ivanivanov.ii726@gmail.com>
Signed-off-by: Ivan Ivanov <ivanivanov.ii726@gmail.com>
@0xivanov 0xivanov added the bug Something isn't working label Jun 4, 2024
@0xivanov 0xivanov self-assigned this Jun 4, 2024
@0xivanov 0xivanov changed the base branch from main to fix-freeze-sign-requirements June 4, 2024 08:41
Base automatically changed from fix-freeze-sign-requirements to main June 4, 2024 08:59
Copy link

codecov bot commented Jun 4, 2024

Codecov Report

Attention: Patch coverage is 84.61538% with 2 lines in your changes missing coverage. Please review.

Project coverage is 72.90%. Comparing base (8bb1063) to head (519404a).

Files Patch % Lines
mirror_node_gateway.go 71.42% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #950      +/-   ##
==========================================
+ Coverage   72.86%   72.90%   +0.04%     
==========================================
  Files         167      167              
  Lines       23374    23373       -1     
==========================================
+ Hits        17032    17041       +9     
+ Misses       5638     5631       -7     
+ Partials      704      701       -3     

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

gsstoykov
gsstoykov previously approved these changes Jun 4, 2024
Copy link
Contributor

@gsstoykov gsstoykov left a comment

Choose a reason for hiding this comment

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

Lets do a couple of reruns for the integration tests so we are sure that flakiness is gone. Otherwise LGTM.

@0xivanov 0xivanov marked this pull request as ready for review June 4, 2024 12:47
@0xivanov 0xivanov requested review from a team as code owners June 4, 2024 12:47
Signed-off-by: Ivan Ivanov <ivanivanov.ii726@gmail.com>
gsstoykov
gsstoykov previously approved these changes Jun 4, 2024
Signed-off-by: Ivan Ivanov <ivanivanov.ii726@gmail.com>
Copy link

sonarcloud bot commented Jun 6, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@0xivanov 0xivanov merged commit 7701475 into main Jun 6, 2024
10 checks passed
@0xivanov 0xivanov deleted the fix-account-alias-mirror-node-queries branch June 6, 2024 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix mirror node queries when using account alias
2 participants