forked from cerc-io/laconicd
Update distribution JSON structure in add-genesis-lockup-account cmd (#75)
Reviewed-on: cerc-io/laconicd#75 Co-authored-by: Nabarun <nabarun@deepstacksoft.com> Co-committed-by: Nabarun <nabarun@deepstacksoft.com>
This commit is contained in:
parent
e02d221dea
commit
a8ebc0aceb
@ -39,7 +39,7 @@ func AddGenesisLockupAccountCmd() *cobra.Command {
|
|||||||
moduleName := args[0]
|
moduleName := args[0]
|
||||||
distributionFilePath := args[1]
|
distributionFilePath := args[1]
|
||||||
|
|
||||||
var distribution map[string]interface{}
|
var distribution []interface{}
|
||||||
distributionBytes, err := os.ReadFile(distributionFilePath)
|
distributionBytes, err := os.ReadFile(distributionFilePath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("failed to read %s file: %w", distributionFilePath, err)
|
return fmt.Errorf("failed to read %s file: %w", distributionFilePath, err)
|
||||||
|
Loading…
Reference in New Issue
Block a user