Skip to content

Commit

Permalink
v1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ppedziwiatr committed Mar 23, 2023
1 parent 1774902 commit 50992ba
Show file tree
Hide file tree
Showing 4 changed files with 183 additions and 134 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.3.0",
"version": "1.3.1",
"description": "An implementation of the SmartWeave smart contract protocol.",
"types": "./lib/types/index.d.ts",
"main": "./lib/cjs/index.js",
Expand Down
3 changes: 1 addition & 2 deletions src/core/modules/impl/handler/JsHandlerApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ export class JsHandlerApi<State> extends AbstractContractHandler<State> {
}

// eslint-disable-next-line
initState(state: State) {
}
initState(state: State) {}

async maybeCallStateConstructor<Input>(
initialState: State,
Expand Down
5 changes: 4 additions & 1 deletion src/core/modules/impl/handler/WasmHandlerApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@ export class WasmHandlerApi<State> extends AbstractContractHandler<State> {
if ('handle' in this.wasmExports) {
return await this.doHandleLegacy(action);
}
const handleResult = action.interactionType === 'write' ? await this.wasmExports.warpContractWrite(action.input) : await this.wasmExports.warpContractView(action.input);
const handleResult =
action.interactionType === 'write'
? await this.wasmExports.warpContractWrite(action.input)
: await this.wasmExports.warpContractView(action.input);
if (!handleResult) {
return;
}
Expand Down
Loading

0 comments on commit 50992ba

Please sign in to comment.