update fee

This commit is contained in:
0xmuralik 2022-11-01 15:40:34 +05:30
parent 733e4a6cc6
commit fa0a4150bd
2 changed files with 5 additions and 5 deletions

View File

@ -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');
})
}

View File

@ -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',
}
}
};