8000 grug: allow customizing genesis sender · Issue #371 · left-curve/left-curve · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

grug: allow customizing genesis sender #371

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

Open
larry0x opened this issue Dec 10, 2024 · 0 comments
Open

grug: allow customizing genesis sender #371

larry0x opened this issue Dec 10, 2024 · 0 comments
Assignees

Comments

@larry0x
Copy link
Contributor
larry0x commented Dec 10, 2024

Currently for genesis message, we use a const GENESIS_SENDER as the sender.

This limits what we can do during genesis. For example we can't create vesting positions in the vesting contract, which only allows chain owner to do this, while GENESIS_SENDER isn't chain owner.

We should create the following struct:

struct GenesisMessage {
    pub sender: Addr,
    pub msg: Message,
}

Then, GenesisState will contain a list of GenesisMessage's instead of Message's.

We don't need to perform auth on the sender during genesis.

@larry0x larry0x self-assigned this Dec 22, 2024
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

No branches or pull requests

1 participant
0