-
Notifications
You must be signed in to change notification settings - Fork 60
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
Genesis icm #2154
base: acp-77
Are you sure you want to change the base?
Genesis icm #2154
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commented
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
if len(allocation.Code) > 0 { | ||
continue | ||
} | ||
if address == common.HexToAddress(icmgenesis.MessengerDeployerAddress) { | ||
continue | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we skip the deployer address and any allocation with code here? Could be helpful to add a comment explaining
@@ -235,3 +235,39 @@ func GetEVMSubnetGenesisNativeMinterAdmin( | |||
} | |||
return getGenesisNativeMinterAdmin(app, network, genesisData) | |||
} | |||
|
|||
func ContractAddressIsInBlockchainGenesis( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we add unit tests for these two new functions?
return nil | ||
} | ||
|
||
func ICMAtBlockchainGenesis( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add comments documenting what these new functions are and how they are intended to be used?
Closes #2142
Setups icm and registry in subnet-vm genesis.