Skip to content

Commit

Permalink
v1.4.36-ao.10
Browse files Browse the repository at this point in the history
  • Loading branch information
ppedziwiatr committed Mar 18, 2024
1 parent 1ddc180 commit eae9653
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
9 changes: 6 additions & 3 deletions src/core/modules/impl/HandlerExecutorFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,12 @@ export class HandlerExecutorFactory implements ExecutorFactory<HandlerApi<unknow
});
} else if (warp.hasPlugin('quickjs')) {
const quickJsPlugin = warp.loadPlugin<QuickJsPluginInput, HandlerApi<State>>('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);
Expand Down Expand Up @@ -359,12 +360,14 @@ export interface VM2PluginInput {
contractDefinition: ContractDefinition<unknown>;
}

export type BinaryType = 'release_sync' | 'release_async' | 'debug_sync' | 'debug_async';

export interface QuickJsPluginInput {
contractSource: string;
evaluationOptions: EvaluationOptions;
swGlobal: SmartWeaveGlobal;
contractDefinition: ContractDefinition<unknown>;
wasmMemory?: Buffer;
binaryType: BinaryType;
}

export interface QuickJsOptions {
Expand Down

0 comments on commit eae9653

Please sign in to comment.