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..be127b1 100644 --- a/src/testing/helper.ts +++ b/src/testing/helper.ts @@ -42,9 +42,9 @@ export const getConfig = () => { 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', } } };