@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user