From 4c80b35c0208a2b1eab7bc77aed462bfde025b7e Mon Sep 17 00:00:00 2001 From: jiyoung Date: Tue, 21 May 2024 11:25:42 +0900 Subject: [PATCH] fix: revert input params. --- src/ain.ts | 2 +- test/ainize.test.ts | 20 -------------------- 2 files changed, 1 insertion(+), 21 deletions(-) delete mode 100644 test/ainize.test.ts 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); - } - }); -});