diff --git a/package.json b/package.json index 862a9dd..75d5373 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "warp-contracts", - "version": "1.4.36-ao.0", + "version": "1.4.36-ao.10", "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/HandlerExecutorFactory.ts b/src/core/modules/impl/HandlerExecutorFactory.ts index 3dd4f97..ef715f0 100644 --- a/src/core/modules/impl/HandlerExecutorFactory.ts +++ b/src/core/modules/impl/HandlerExecutorFactory.ts @@ -211,11 +211,12 @@ export class HandlerExecutorFactory implements ExecutorFactory>('quickjs'); - return await quickJsPlugin.process({ + return quickJsPlugin.process({ contractSource: contractDefinition.src, evaluationOptions, swGlobal: swGlobal, - contractDefinition + contractDefinition, + binaryType: 'release_sync' }); } else { const contractFunction = new Function(normalizedSource); @@ -359,12 +360,14 @@ export interface VM2PluginInput { contractDefinition: ContractDefinition; } +export type BinaryType = 'release_sync' | 'release_async' | 'debug_sync' | 'debug_async'; + export interface QuickJsPluginInput { contractSource: string; evaluationOptions: EvaluationOptions; swGlobal: SmartWeaveGlobal; contractDefinition: ContractDefinition; - wasmMemory?: Buffer; + binaryType: BinaryType; } export interface QuickJsOptions {