Serahc sender with message.action and message.sender

This commit is contained in:
Simon Warta 2023-05-22 17:59:33 +02:00
parent c6ac77a0f6
commit 0c0b6da9a4

View File

@ -227,7 +227,9 @@ 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(`transfer.sender='${sendSuccessful.sender}'`);
// Since Cosmos SDK 0.47 we can only combine attributes of a single event
const query = `message.action = '/cosmos.bank.v1beta1.MsgSend' AND message.sender = '${sendSuccessful.sender}'`;
const results = await client.searchTx(query);
expect(results.length).toBeGreaterThanOrEqual(1);
// Check basic structure of all results