Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

FM-125: Ethereum accounts in genesis #126

Merged
merged 3 commits into from
Jun 20, 2023
Merged

FM-125: Ethereum accounts in genesis #126

merged 3 commits into from
Jun 20, 2023

Conversation

aakoshh
Copy link
Contributor

@aakoshh aakoshh commented Jun 19, 2023

Closes consensus-shipyard/ipc#333

  • Added a --kind parameter to the fendermint genesis add-account CLI command which can be regular (default) or ethereum. Depending on its value the public key is hashed as an f1 or an f410 address.
  • The genesis interpreter inspects the owner of the account and if it's an f410 address it creates the state with the ethaccount code ID and sets the delegated_address.

@aakoshh aakoshh requested a review from adlrocha June 19, 2023 14:20
@aakoshh aakoshh merged commit 07e99ce into master Jun 20, 2023
@aakoshh aakoshh deleted the fm-125-eth-genesis branch June 20, 2023 08:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ethereum account in genesis
1 participant