I’ve been looking in the docs and I found the phrase “[zomes] should contain either pre-compiled WASM, or the source code and instructions to generate WASM”. But there are no instructions on what that looks like or examples to follow.
Are there any
zome.json properties that need to be declared to do this? What about the name of the WASM file & folder structure? I can confirm that:
- if the WASM file is placed adjacent to
codeattribute is generated for the DNA bundle and compilation fails.
- if the WASM file is manually specified in the
codeattribute it complains about invalid format, so that’s definitely not right…
- if the WASM file is placed in a
codesubdirectory adjacent to
zome.json, an empty object is present for the
codeattribute in the DNA bundle.
Any help? Thanks!