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

feat: imports hardforks preset accounts #805

Merged
merged 4 commits into from
Jul 28, 2022
Merged

Conversation

jyeshe
Copy link
Member

@jyeshe jyeshe commented Jul 26, 2022

Refs #347

@jyeshe jyeshe self-assigned this Jul 26, 2022
@jyeshe
Copy link
Member Author

jyeshe commented Jul 26, 2022

README notes to be added...

@jyeshe jyeshe requested review from sborrazas and thepiwo and removed request for sborrazas and thepiwo July 26, 2022 16:46
"""
@spec import_account_presets() :: :ok
def import_account_presets do
case Database.next_key(Model.KindIntTransferTx, {"accounts_lima", {-1, -1}, <<>>, -1}) do
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we turn this entirely into a mutation? That way we continue encapsulating Database calls through the State

Copy link
Member Author

Choose a reason for hiding this comment

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

The Database is used because the goal is to check if the data is already persisted.

Copy link
Contributor

Choose a reason for hiding this comment

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

I understand that's what it does. I was suggesting changing how it does it. It's optional anyway, feel free to merge it

Copy link
Member Author

@jyeshe jyeshe Jul 27, 2022

Choose a reason for hiding this comment

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

I am talking about how not to encapsulate things to make the purpose clearer.

@jyeshe jyeshe requested a review from sborrazas July 27, 2022 07:58
@jyeshe jyeshe merged commit 2806136 into master Jul 28, 2022
@jyeshe jyeshe deleted the hardfork-preset-accounts branch July 28, 2022 08:30
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

3 participants