diff --git a/src/ain.ts b/src/ain.ts index ffefe0d..7ba90cb 100644 --- a/src/ain.ts +++ b/src/ain.ts @@ -20,7 +20,7 @@ export default class AinModule { initAin(chainId: 0 | 1) { const blockchainAPIEndpoint = getBlockChainAPIEndpoint(chainId); const blockchainEventEndpoint = getBlockChainEventEndpoint(chainId); - this.ain = new Ain('http://localhost:8081/', 'ws://localhost:5100/', chainId); + this.ain = new Ain(blockchainAPIEndpoint, blockchainEventEndpoint, chainId); } createAccount() { diff --git a/test/ainize.test.ts b/test/ainize.test.ts deleted file mode 100644 index e7790b7..0000000 --- a/test/ainize.test.ts +++ /dev/null @@ -1,20 +0,0 @@ -import Ainize from '../src/ainize'; - -jest.setTimeout(25000); - -describe('ainize', () => { - it('should deploy service', async () => { - const ainize = new Ainize(0); - const privateKey = 'b22c95ffc4a5c096f7d7d0487ba963ce6ac945bdc91c79b64ce209de289bec96'; - - try { - await ainize.login(privateKey); - await ainize.deploy({ - serviceName: 'TEST_SERVICE_NAME', - serviceUrl: 'TEST_SERVICE_URL', - }); - } catch (err) { - console.error(err); - } - }); -});