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

Add support for parsing arrays containing values of different types #1949

Closed
iulianbarbu opened this issue Feb 4, 2025 · 3 comments
Closed

Comments

@iulianbarbu
Copy link

iulianbarbu commented Feb 4, 2025

Is your feature request related to a problem? Please describe.

This is relevant for supporting patching the runtimeGenesis config with devAccounts like so:

[parachains.genesis.runtimeGenesis.patch.balances]
devAccounts = [
    20000,
    1000000000000,
    "//Sender//{}",
]

Describe the solution you'd like

I'd like the above patch to be applied successfully when starting a network based on a toml containing it, with zombienet/cli.

Describe alternatives you've considered

No response

Additional context

Tried starting some tomls containing the patch above with zombienet/cli in relation to this PR: paritytech/polkadot-sdk#7257, and I reached an error related to different value types in the devAccounts array.

@pepoviola
Copy link
Collaborator

Hi @iulianbarbu can you post here the error you get?
Thx!

@iulianbarbu
Copy link
Author

Hi @iulianbarbu can you post here the error you get? Thx!

Error: Error: Cannot add value of type String to array of type Integer.

@pepoviola
Copy link
Collaborator

Fixed in #1951. Closing here.
Thx!

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

2 participants