Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
NeverHappened committed Aug 3, 2023
1 parent fb04f49 commit c16b7e3
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/testcases/run_in_band/globalfee.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('Neutron / Global Fee', () => {
testState.wallets.neutron.demo1,
);
const daoCoreAddress = (await neutronChain.getChainAdmins())[0];
const daoContracts = await getDaoContracts(neutronChain, daoCoreAddress); // breaks here!
const daoContracts = await getDaoContracts(neutronChain, daoCoreAddress);
dao = new Dao(neutronChain, daoContracts);
daoMember = new DaoMember(neutronAccount, dao);
await daoMember.bondFunds('1000');
Expand Down Expand Up @@ -79,7 +79,6 @@ describe('Neutron / Global Fee', () => {
});

test('check minumum global fees with bank send command', async () => {
neutronChain.blockWaiter.waitBlocks(2);
await expect(
neutronAccount.msgSend(dao.contracts.core.address, '1000', {
gas_limit: Long.fromString('200000'),
Expand Down Expand Up @@ -156,13 +155,12 @@ describe('Neutron / Global Fee', () => {
});

test('check that MsgSend does not work without minimal fees now', async () => {
const fee = {
gas_limit: Long.fromString('200000'),
amount: [{ denom: daoMember.user.chain.denom, amount: '500' }],
};
neutronChain.blockWaiter.waitBlocks(2);
await expect(
neutronAccount.msgSend(dao.contracts.core.address, '1000', fee),
neutronAccount.msgSend(dao.contracts.core.address, '1000', {
gas_limit: Long.fromString('200000'),
amount: [{ denom: daoMember.user.chain.denom, amount: '500' }],
}),
).rejects.toThrowError(
/Insufficient fees; bypass-min-fee-msg-types with gas consumption 200000 exceeds the maximum allowed gas value of 50.: insufficient fee/,
);
Expand Down

0 comments on commit c16b7e3

Please sign in to comment.