v0.4.43
Some checks failed
CI / build (push) Has been cancelled

This commit is contained in:
ppedziwiatr
2022-03-12 17:55:36 +01:00
parent 393edac0e8
commit 82e3b52563
5 changed files with 593 additions and 593 deletions

View File

@@ -93,7 +93,7 @@ export class WasmContractHandlerApi<State> implements HandlerApi<State> {
this.wasmExports.initState(state);
break;
}
case "go": {
case 'go': {
this.wasmExports.initState(stringify(state));
break;
}
@@ -137,7 +137,7 @@ export class WasmContractHandlerApi<State> implements HandlerApi<State> {
}
}
}
case "go": {
case 'go': {
const result = await this.wasmExports.handle(stringify(action.input));
return JSON.parse(result);
}
@@ -156,7 +156,7 @@ export class WasmContractHandlerApi<State> implements HandlerApi<State> {
case 'rust': {
return this.wasmExports.currentState();
}
case "go": {
case 'go': {
const result = this.wasmExports.currentState();
return JSON.parse(result);
}