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

Remove createAccount parameter #1749

Merged
merged 2 commits into from
Nov 7, 2024
Merged

Conversation

RodrigoVillar
Copy link
Contributor

This PR removes the createAccount parameter from AddBalance in BalanceHandler. This PR also updates both the DefaultGenesis and MorpheusVM to reflect the change.

) (uint64, error) {
key, bal, exists, err := getBalance(ctx, mu, addr)
key, bal, _, err := getBalance(ctx, mu, addr)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we still need the extra parameter returned by getBalance ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

if !ok {
return 0, ErrInvalidBalance
}
It's still used by SubBalance()

Copy link
Collaborator

@aaronbuchwald aaronbuchwald left a comment

Choose a reason for hiding this comment

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

LGTM

@joshua-kim joshua-kim merged commit 3344c30 into main Nov 7, 2024
17 checks passed
@joshua-kim joshua-kim deleted the remove-createAccount-parameter branch November 7, 2024 19:06
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.

3 participants