Skip to content

[Bug]: v0.52 Init Lockup Account #23312

@Senna46

Description

@Senna46

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

Genesis

  1. In README.md, incorrect type is shown. It should be written exactly as follows
    https://github.com/cosmos/cosmos-sdk/blob/main/x/accounts/README.md?plain=1#L550
      "init_account_msgs": [
        {
          "sender": "account_creator_address",
          "account_type": "lockup_account_type",
          "message": {
            "@type": "/cosmos.accounts.defaults.lockup.v1.MsgInitLockupAccount",
            "owner": "some_owner",
            "end_time": "2026-01-01T00:00:00Z",
            "start_time": "2025-01-01T00:00:00Z"
          },
          "funds": [
            {
              "denom": "stake",
              "amount": "1000"
            }
          ]
        }
  1. This message is executed in the genesis block. Therefore, the order of IntGenesis needs to be changed to auth, bank, and staking before accounts.
    https://github.com/cosmos/cosmos-sdk/blob/main/simapp/v2/app_config.go#L156

After Genesis

In CLI, there is no fund option. So, we cannot create funded lockup account
https://github.com/cosmos/cosmos-sdk/blob/main/x/accounts/cli/cli.go#L42

Cosmos SDK Version

0.52.0-rc1 and current main

How to reproduce?

Some issues appear when creating genesis.json and starting the chain.
I could be resolved by modifying genesis.json and changing the order of InitGenesis.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions