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: rosetta zero balance accounts #8830

Merged
merged 3 commits into from
Mar 29, 2023

Conversation

encody
Copy link
Member

@encody encody commented Mar 29, 2023

No description provided.

@wacban wacban requested a review from jakmeier March 29, 2023 09:52
@encody encody marked this pull request as ready for review March 29, 2023 09:53
@encody encody requested a review from a team as a code owner March 29, 2023 09:53
@wacban
Copy link
Contributor

wacban commented Mar 29, 2023

Would it be possible to unit or integration test this change as well? I'm not sure what rosetta rpc endpoint failed exactly but a test that does something along those lines would be cool.

Copy link
Collaborator

@bowenwang1996 bowenwang1996 left a comment

Choose a reason for hiding this comment

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

Please add a test so that we can catch similar issues in the future, as Wac suggested

chain/rosetta-rpc/src/utils.rs Show resolved Hide resolved
Copy link
Contributor

@jakmeier jakmeier left a comment

Choose a reason for hiding this comment

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

As others pointed out, a test would be useful.
But if you need this hotfix now and want to add the test later, I think that's also okay.

@near-bulldozer near-bulldozer bot merged commit ba2ea2a into master Mar 29, 2023
@near-bulldozer near-bulldozer bot deleted the fix/rosetta-zero-balance-accounts branch March 29, 2023 12:05
wacban pushed a commit that referenced this pull request Mar 29, 2023
* fix: add zero-balance account check to rosetta

* fix: slightly less magic-numbery

---------

Co-authored-by: near-bulldozer[bot] <73298989+near-bulldozer[bot]@users.noreply.github.com>
@encody
Copy link
Member Author

encody commented Mar 29, 2023

As others pointed out, a test would be useful. But if you need this hotfix now and want to add the test later, I think that's also okay.

See: #8833 for tests, etc.

posvyatokum pushed a commit that referenced this pull request Mar 29, 2023
* fix: add zero-balance account check to rosetta

* fix: slightly less magic-numbery

---------

Co-authored-by: near-bulldozer[bot] <73298989+near-bulldozer[bot]@users.noreply.github.com>
nikurt pushed a commit to nikurt/nearcore that referenced this pull request Apr 5, 2023
* fix: add zero-balance account check to rosetta

* fix: slightly less magic-numbery

---------

Co-authored-by: near-bulldozer[bot] <73298989+near-bulldozer[bot]@users.noreply.github.com>
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.

None yet

4 participants