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

[Bug]: Vesting periods field is empty in periodic vesting account #15978

Closed
Ashritha-Reddy1004 opened this issue Apr 28, 2023 · 1 comment
Closed
Labels

Comments

@Ashritha-Reddy1004
Copy link

Ashritha-Reddy1004 commented Apr 28, 2023

Summary

The issue is regarding the vesting periods. Whenever a periodic vesting account is being created the vesting periods field is empty. Vesting periods are not being shown even in the response to the query. Output reference is shown below.

messages:
    - '@type': /cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount
            from_address: cosmos1y5wtsnngym8fh5qcy9hyk8tquc5a2amt28t42c
            start_time: "1682745355"
            to_address: cosmos17fdwawq3w5hk20mhjf8ngne4ajq4xxv9ap4760
            vesting_periods: []
            non_critical_extension_options: []
            timeout_height: "0"
            signatures: []

Version

v0.46.x

Steps to Reproduce

  1. Create few keys for testing purpose using the following commands.
    ./simd keys add validator-key
    ./simd keys add mykey1
    ./simd keys add mykey2

    #list all keys
    ./simd keys list

  2. Setup and run a local net

  3. Create a periodic vesting account
    ./simd tx vesting create-periodic-vesting-account [to_address] [periods.json] [flags]

  4. Content in .json file

        "start_time": 1682745355,
         "period":[
           {
             "coins": "100stake",
             "length_seconds":2592000 
            },
            {
           "coins": "100stake",
            "length_seconds":2592000
              }
             ]
           } 
    
@julienrbrt
Copy link
Member

Hi, this is because it should be periods and not period in your json.
I see there is a typo in the example of the command, we'll fix that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants