Update distribution json struccture in add-genesis-lockup-account cmd
All checks were successful
Integration Tests / test-integration (pull_request) Successful in 1m35s
Build / build (pull_request) Successful in 1m37s
E2E Tests / test-e2e (pull_request) Successful in 2m45s
Unit Tests / test-unit (pull_request) Successful in 1m12s
SDK Tests / sdk_tests_nameservice_expiry (pull_request) Successful in 6m0s
SDK Tests / sdk_tests_authority_auctions (pull_request) Successful in 11m33s
SDK Tests / sdk_tests (pull_request) Successful in 15m27s

This commit is contained in:
Nabarun 2025-06-19 00:42:10 +05:30
parent e02d221dea
commit e49de8b97f

View File

@ -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)