Closed parv0888 closed 9 months ago
Thank you for reporting this. I agree that this is something that should be fixed, since the user might use another file extension.
I do want to remark that the tool cannot use arbitrary web assembly files and only supports concordium smart contract modules, which includes more information than just the web assembly. In other words, the tool does not work with files that are supposed to have the .wasm
extension.
Bug Description The generator uses https://github.com/Concordium/concordium-node-sdk-js/blob/eac464b8cdad81f1e189c87a6b4cb406f7eac79e/packages/ccd-js-gen/src/lib.ts#L62 hardcoded path extension which is
.wasm.v1
which is okay for the default output file but causes issues with any other extension which the user might choose to generate.Steps to Reproduce
cargo concordium build --out ./module.wasm
and use this wasm module file with ccd-js-gen clinpx ccd-js-gen --module ./module.wasm --out-dir ../generated
Expected Result should generate without any errors
Actual Result
Versions cargo concordium 3.1.4 ccd-js-gen ^1.0.1