diff --git a/README.md b/README.md index 8373db3..55ca756 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,12 @@ You should login to ainize with AI Network account before deploy the container. ainize.login(); ``` +You can also login using [AIN Wallet](https://chromewebstore.google.com/detail/ain-wallet/hbdheoebpgogdkagfojahleegjfkhkpl) on the web. +```typescript +ainize.loginWithSigner(); +``` +This feature is supported from AIN Wallet version 2.0.5 or later. + ### Deploy You can deploy your AI service to ainize. ```typescript diff --git a/package.json b/package.json index 2fee9e7..e4064d8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ainize-team/ainize-js", - "version": "1.0.6", + "version": "1.1.0", "main": "dist/ainize.js", "types": "dist/ainize.d.ts", "scripts": { diff --git a/src/controllers/serviceController.ts b/src/controllers/serviceController.ts index 9093cca..c08889d 100644 --- a/src/controllers/serviceController.ts +++ b/src/controllers/serviceController.ts @@ -67,7 +67,6 @@ export default class ServiceController { async getCreditBalance(serviceName: string): Promise { const userAddress = await this.ain.getAddress(); - console.log("userAddress in getCreditBalance", userAddress) const balancePath = Path.app(serviceName).balanceOfUser(userAddress); return await this.ain.getValue(balancePath) as number | 0; }