You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This tries to set an array in the genesis configuration, runtime.mixnet.mixnodes. Currently this fails with the error TypeError: Cannot convert object to primitive value. The issue appears to be this line in chainSpec.ts:
debug(`[ ${key}: ${obj2[key]} ]`);
Commenting it out fixes things.
Steps to reproduce the issue
Build the Substrate kitchen-sink node on my mixnet branch (sorry, I'm not aware of any existing pallets which have an array-of-objects in their genesis configuration).
Create a network.toml file with the above contents.
Run node packages/cli/dist/cli.js --provider native spawn network.toml.
Describe the results you received
Zombienet prints the following error:
Fail to customize genesis
Unexpected error: TypeError: Cannot convert object to primitive value
The final chain spec local-plain.json has an empty mixnodes array.
Describe the results you expected
Zombienet should successfully launch the network without printing any errors. The final chain spec local-plain.json should not have an empty mixnodes array.
Issue Description
Take for example the following network definition:
This tries to set an array in the genesis configuration,
runtime.mixnet.mixnodes
. Currently this fails with the errorTypeError: Cannot convert object to primitive value
. The issue appears to be this line inchainSpec.ts
:Commenting it out fixes things.
Steps to reproduce the issue
network.toml
file with the above contents.node packages/cli/dist/cli.js --provider native spawn network.toml
.Describe the results you received
Zombienet prints the following error:
The final chain spec
local-plain.json
has an emptymixnodes
array.Describe the results you expected
Zombienet should successfully launch the network without printing any errors. The final chain spec
local-plain.json
should not have an emptymixnodes
array.Zombienet version
33a5f83
Provider
Native
Provider version
Substrate kitchen-sink node, built on my mixnet branch.
Upstream Latest Release
Yes
The text was updated successfully, but these errors were encountered: