diff --git a/package.json b/package.json index a77b224..124a460 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ainize-team/ainize-sdk", - "version": "1.0.2", + "version": "1.0.3", "main": "dist/ainize.js", "types": "dist/ainize.d.ts", "scripts": { diff --git a/src/controllers/serviceController.ts b/src/controllers/serviceController.ts index 16e546e..64c580b 100644 --- a/src/controllers/serviceController.ts +++ b/src/controllers/serviceController.ts @@ -79,7 +79,7 @@ export default class ServiceController { const responsePath = Path.app(serviceName).response(requesterAddress, requestKey.toString()); await this.handler.subscribe(responsePath, resolve); const requestPath = Path.app(serviceName).request(requesterAddress, requestKey); - const requestOp = buildSetOperation("SET_VALUE", requestPath, {prompt: requestData}); + const requestOp = buildSetOperation("SET_VALUE", requestPath, requestData); const txBody = buildTxBody(requestOp); await this.ain.sendTransaction(txBody); return requestKey;