Merge pull request #5 from cerc-io/murali/fix-tests

fix: tests failing against updated laconicd
This commit is contained in:
David Boreham 2022-11-04 06:46:09 -06:00 committed by GitHub
commit 3a890ab46c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -32,14 +32,14 @@ const registryTests = () => {
test('Get account balance.', async() => { test('Get account balance.', async() => {
const mnenonic1 = Account.generateMnemonic(); const mnenonic1 = Account.generateMnemonic();
const otherAccount = await Account.generateFromMnemonic(mnenonic1); 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]); const [accountObj] = await registry.getAccounts([otherAccount.formattedCosmosAddress]);
expect(accountObj).toBeDefined(); expect(accountObj).toBeDefined();
expect(accountObj.address).toBe(otherAccount.formattedCosmosAddress); expect(accountObj.address).toBe(otherAccount.formattedCosmosAddress);
const [{ type, quantity }] = accountObj.balance const [{ type, quantity }] = accountObj.balance
expect(type).toBe('aphoton'); expect(type).toBe('aphoton');
expect(quantity).toBe('10000000000000000000000000'); expect(quantity).toBe('100000000');
}) })
} }

View File

@ -42,9 +42,9 @@ export const getConfig = () => {
restEndpoint: process.env.LACONICD_REST_ENDPOINT || 'http://localhost:1317', restEndpoint: process.env.LACONICD_REST_ENDPOINT || 'http://localhost:1317',
gqlEndpoint: process.env.LACONICD_GQL_ENDPOINT || 'http://localhost:9473/api', gqlEndpoint: process.env.LACONICD_GQL_ENDPOINT || 'http://localhost:9473/api',
fee: { fee: {
amount: '20', amount: '30',
denom: 'aphoton', denom: 'aphoton',
gas: '200000', gas: '300000',
} }
} }
}; };