Hi all — hitting a chain of dependency issues trying to deploy the default Hello World template from create-mn-app@0.5.1 to the local devnet. Posting the full error sequence in case others are hitting the same thing, since it looks version-related rather than something in my setup.
Environment: Windows 11 + WSL2/Ubuntu, Node 22.23.2, Docker Desktop with WSL integration, Compact compiler 0.34.0.
Sequence of errors:
- Fresh scaffold (compact-runtime@^0.19.0, midnight-js-*@4.1.1, wallet-sdk@1.2.0) fails with:
ContractConfigurationError: Failed to configure constructor context with coin public key
Cause: Cannot read properties of undefined (reading ‘coinPublicKey’)
at decodeZswapLocalState (…/compact-js/src/effect/ContractExecutable.ts)
Root cause turned out to be a duplicate nested copy of compact-js@2.5.1 under midnight-js-protocol’s own node_modules, separate from the top-level version.
- Forcing a single version via “overrides”: { “@midnight-ntwrk/compact-js”: “2.5.5-rc.8” } and reinstalling fixed that error, but surfaced a new one at the deploy step:
ContractConfigurationError: Unsupported signature scheme ‘undefined’ for a contract maintenance authority; supported schemes are: schnorr, ecdsa
at createMaintenanceAuthority (…/compact-js/src/effect/ContractExecutable.ts:683)
No signing key is explicitly passed to deployContract() (using the scaffold’s default deploy.ts), so I’d expect an auto-generated one, but the scheme comes back undefined.
Question: Is this a known compatibility gap between wallet-sdk@1.2.0 and compact-js@2.5.5-rc.x, and is there a currently-recommended matching version set for the Hello World scaffold? Happy to share full logs/package.json if useful.
Thanks!