src/operations/invoke_host_function.js
Function createCustomContract
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function createCustomContract(opts) {
const salt = Buffer.from(opts.salt || getSalty());
if (!opts.wasmHash || opts.wasmHash.length !== 32) {
throw new TypeError(