Avoid searching for attributes across different events

This commit is contained in:
Simon Warta 2023-05-22 17:04:00 +02:00
parent eb52e93fd4
commit c6ac77a0f6
2 changed files with 4 additions and 12 deletions

View File

@ -235,9 +235,7 @@ describe("CosmWasmClient.getTx and .searchTx", () => {
pendingWithoutWasmd();
assert(sendSuccessful, "value must be set in beforeAll()");
const client = await CosmWasmClient.connect(wasmd.endpoint);
const results = await client.searchTx(
`message.module='bank' AND transfer.sender='${sendSuccessful.sender}'`,
);
const results = await client.searchTx(`transfer.sender='${sendSuccessful.sender}'`);
expect(results.length).toBeGreaterThanOrEqual(1);
// Check basic structure of all results
@ -266,9 +264,7 @@ describe("CosmWasmClient.getTx and .searchTx", () => {
pendingWithoutWasmd();
assert(sendSuccessful, "value must be set in beforeAll()");
const client = await CosmWasmClient.connect(wasmd.endpoint);
const results = await client.searchTx(
`message.module='bank' AND transfer.recipient='${sendSuccessful.recipient}'`,
);
const results = await client.searchTx(`transfer.recipient='${sendSuccessful.recipient}'`);
expect(results.length).toBeGreaterThanOrEqual(1);
// Check basic structure of all results

View File

@ -227,9 +227,7 @@ describe("StargateClient.getTx and .searchTx", () => {
pendingWithoutSimapp();
assert(sendSuccessful, "value must be set in beforeAll()");
const client = await StargateClient.connect(simapp.tendermintUrl);
const results = await client.searchTx(
`message.module='bank' AND transfer.sender='${sendSuccessful.sender}'`,
);
const results = await client.searchTx(`transfer.sender='${sendSuccessful.sender}'`);
expect(results.length).toBeGreaterThanOrEqual(1);
// Check basic structure of all results
@ -257,9 +255,7 @@ describe("StargateClient.getTx and .searchTx", () => {
pendingWithoutSimapp();
assert(sendSuccessful, "value must be set in beforeAll()");
const client = await StargateClient.connect(simapp.tendermintUrl);
const results = await client.searchTx(
`message.module='bank' AND transfer.recipient='${sendSuccessful.recipient}'`,
);
const results = await client.searchTx(`transfer.recipient='${sendSuccessful.recipient}'`);
expect(results.length).toBeGreaterThanOrEqual(1);
// Check basic structure of all results