diff --git a/package.json b/package.json index 950bb89d..6774d5a0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "warp-contracts", - "version": "1.3.3", + "version": "1.3.4-beta.0", "description": "An implementation of the SmartWeave smart contract protocol.", "types": "./lib/types/index.d.ts", "main": "./lib/cjs/index.js", diff --git a/src/core/modules/impl/wasm/rust-wasm-imports.ts b/src/core/modules/impl/wasm/rust-wasm-imports.ts index bbb163e3..19a68b80 100644 --- a/src/core/modules/impl/wasm/rust-wasm-imports.ts +++ b/src/core/modules/impl/wasm/rust-wasm-imports.ts @@ -200,16 +200,16 @@ export const rustWasmImports = ( const encodeString = typeof cachedTextEncoder.encodeInto === 'function' ? function (arg, view) { - return cachedTextEncoder.encodeInto(arg, view); - } + return cachedTextEncoder.encodeInto(arg, view); + } : function (arg, view) { - const buf = cachedTextEncoder.encode(arg); - view.set(buf); - return { - read: arg.length, - written: buf.length + const buf = cachedTextEncoder.encode(arg); + view.set(buf); + return { + read: arg.length, + written: buf.length + }; }; - }; function passStringToWasm0(arg, malloc, realloc) { if (typeof arg !== 'string') throw new Error('expected a string argument'); @@ -497,7 +497,9 @@ export const rustWasmImports = ( } function notDefined(what) { - return () => { throw new Error(`${what} is not defined`); }; + return () => { + throw new Error(`${what} is not defined`); + }; } // mapping from base function names (without mangled suffixes) @@ -1245,7 +1247,7 @@ export const rustWasmImports = ( wasm: () => wasmInstance.exports, WASM_VECTOR_LEN: () => WASM_VECTOR_LEN, __wbg_adapter_4: __wbg_adapter_42, - __wbg_adapter_3: __wbg_adapter_52, + __wbg_adapter_3: __wbg_adapter_52 }; function wrapPluginMethod(f: (_: Object) => Object) { @@ -1253,8 +1255,8 @@ export const rustWasmImports = ( return logError(function (arg0) { const ret = f(takeObject(arg0)); return addHeapObject(ret); - }, arguments) - } + }, arguments); + }; } function extensionsDefinedImports(swGlobal, helpers) { @@ -1272,7 +1274,6 @@ export const rustWasmImports = ( return res; } - const allBaseImports = { ...baseImports, ...extensionsDefinedImports(swGlobal, helpers) }; const baseImportsKeys = Object.keys(allBaseImports); // assigning functions to "real" import names from the currently