Signature needs to match
fewwwww opened this issue · comments
// zkwasm.ts
@external("env", "require")
export declare function require(x: i32): i64
This will have require
compiled in build/main.js
, but this cannot be set up in zkWASM. The return type must be void
to match function signature.