Skip to content

Commit

Permalink
fix: review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ratik committed Nov 17, 2022
1 parent e8e3682 commit 9fa3a67
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/testcases/interchain_tx_query.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ describe('Neutron / Interchain TX Query', () => {
JSON.stringify({
update_interchain_query: {
query_id: 3,
new_update_period: 5,
new_update_period: query3UpdatePeriod,
new_recipient: newWatchedAddr5,
},
}),
Expand All @@ -653,7 +653,7 @@ describe('Neutron / Interchain TX Query', () => {
expect(query.registered_query.owner).toEqual(contractAddress);
expect(query.registered_query.keys.length).toEqual(0);
expect(query.registered_query.query_type).toEqual('tx');
expect(query.registered_query.update_period).toEqual(5);
expect(query.registered_query.update_period).toEqual(query3UpdatePeriod);
expect(query.registered_query.transactions_filter).toEqual(
'[{"field":"transfer.recipient","op":"Eq","value":"' +
newWatchedAddr5 +
Expand All @@ -670,19 +670,18 @@ describe('Neutron / Interchain TX Query', () => {
cm,
contractAddress,
expectedIncomingTransfers,
query1UpdatePeriod * 5,
query3UpdatePeriod * 2,
);
const deposits = await queryRecipientTxs(
cm,
contractAddress,
newWatchedAddr5,
);
expect(deposits.transfers).toEqual([
expect(deposits.transfers).toMatchObject([
{
recipient: watchedAddr1,
recipient: newWatchedAddr5,
sender: cm2.wallet.address.toString(),
denom: cm2.denom,
amount: addr1ExpectedBalance.toString(),
},
]);
});
Expand Down

0 comments on commit 9fa3a67

Please sign in to comment.