From fa0a4150bd31552e1e79f4463353f3f0cfd348db Mon Sep 17 00:00:00 2001 From: 0xmuralik Date: Tue, 1 Nov 2022 15:40:34 +0530 Subject: [PATCH 1/2] update fee --- src/index.test.ts | 4 ++-- src/testing/helper.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/index.test.ts b/src/index.test.ts index 1c1baae..b1ee44a 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -32,14 +32,14 @@ const registryTests = () => { test('Get account balance.', async() => { const mnenonic1 = Account.generateMnemonic(); const otherAccount = await Account.generateFromMnemonic(mnenonic1); - await registry.sendCoins({ denom: 'aphoton', amount: '10000000000000000000000000', destinationAddress: otherAccount.formattedCosmosAddress }, privateKey, fee); + await registry.sendCoins({ denom: 'aphoton', amount: '100000000', destinationAddress: otherAccount.formattedCosmosAddress }, privateKey, fee); const [accountObj] = await registry.getAccounts([otherAccount.formattedCosmosAddress]); expect(accountObj).toBeDefined(); expect(accountObj.address).toBe(otherAccount.formattedCosmosAddress); const [{ type, quantity }] = accountObj.balance expect(type).toBe('aphoton'); - expect(quantity).toBe('10000000000000000000000000'); + expect(quantity).toBe('100000000'); }) } diff --git a/src/testing/helper.ts b/src/testing/helper.ts index 1b58932..9247c5f 100644 --- a/src/testing/helper.ts +++ b/src/testing/helper.ts @@ -37,14 +37,14 @@ export const getConfig = () => { assert(process.env.PRIVATE_KEY); return { - chainId: process.env.COSMOS_CHAIN_ID || 'laconic_9000-1', + chainId: process.env.COSMOS_CHAIN_ID || 'ethermint_9000-1', privateKey: process.env.PRIVATE_KEY, restEndpoint: process.env.LACONICD_REST_ENDPOINT || 'http://localhost:1317', gqlEndpoint: process.env.LACONICD_GQL_ENDPOINT || 'http://localhost:9473/api', fee: { - amount: '20', + amount: '30', denom: 'aphoton', - gas: '200000', + gas: '300000', } } }; From b9cb479381a49c1658977bcff5c33a45c3d09eee Mon Sep 17 00:00:00 2001 From: David Boreham Date: Fri, 4 Nov 2022 06:45:42 -0600 Subject: [PATCH 2/2] Revert to fixturenet chain id --- src/testing/helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/testing/helper.ts b/src/testing/helper.ts index 9247c5f..be127b1 100644 --- a/src/testing/helper.ts +++ b/src/testing/helper.ts @@ -37,7 +37,7 @@ export const getConfig = () => { assert(process.env.PRIVATE_KEY); return { - chainId: process.env.COSMOS_CHAIN_ID || 'ethermint_9000-1', + chainId: process.env.COSMOS_CHAIN_ID || 'laconic_9000-1', privateKey: process.env.PRIVATE_KEY, restEndpoint: process.env.LACONICD_REST_ENDPOINT || 'http://localhost:1317', gqlEndpoint: process.env.LACONICD_GQL_ENDPOINT || 'http://localhost:9473/api',