diff --git a/src/helpers/types.ts b/src/helpers/types.ts index 95416f2e..9780bf12 100644 --- a/src/helpers/types.ts +++ b/src/helpers/types.ts @@ -80,10 +80,11 @@ export type AckFailuresResponse = { type Failure = { address: string; id: string; - sequence_id: string; ack: { - result: string | null; // base64 encoded bytes - error: string | null; // error text + response: { + result: string | null; // base64 encoded bytes + error: string | null; // error text + }; }; ack_type: string; packet: { diff --git a/src/testcases/run_in_band/interchaintx.test.ts b/src/testcases/run_in_band/interchaintx.test.ts index 3ebd585d..26cb218b 100644 --- a/src/testcases/run_in_band/interchaintx.test.ts +++ b/src/testcases/run_in_band/interchaintx.test.ts @@ -769,41 +769,41 @@ describe('Neutron / Interchain TXs', () => { // 3 ack failures, 1 timeout failure, just as described in the tests above expect(failures.failures).toEqual([ expect.objectContaining({ - channel_id: 'channel-3', address: 'neutron1m0z0kk0qqug74n9u9ul23e28x5fszr628h20xwt6jywjpp64xn4qatgvm0', id: '0', packet: expect.objectContaining({ + source_channel: 'channel-3', sequence: '2', }), ack_type: 'ack', }), expect.objectContaining({ - channel_id: 'channel-3', address: 'neutron1m0z0kk0qqug74n9u9ul23e28x5fszr628h20xwt6jywjpp64xn4qatgvm0', id: '1', packet: expect.objectContaining({ + source_channel: 'channel-3', sequence: '3', }), ack_type: 'ack', }), expect.objectContaining({ - channel_id: 'channel-3', address: 'neutron1m0z0kk0qqug74n9u9ul23e28x5fszr628h20xwt6jywjpp64xn4qatgvm0', id: '2', packet: expect.objectContaining({ + source_channel: 'channel-3', sequence: '4', }), ack_type: 'ack', }), expect.objectContaining({ - channel_id: 'channel-3', address: 'neutron1m0z0kk0qqug74n9u9ul23e28x5fszr628h20xwt6jywjpp64xn4qatgvm0', id: '3', packet: expect.objectContaining({ + source_channel: 'channel-3', sequence: '5', }), ack_type: 'timeout', @@ -890,7 +890,7 @@ describe('Neutron / Interchain TXs', () => { ); expect(failuresResAfter.failures.length).toEqual(3); - // make sure contract's state hasn't been changed + // make sure contract's state has been changed const acks = await getAcks(neutronChain, contractAddress); expect(acks.length).toEqual(1); expect(acks[0].sequence_id).toEqual(+failure.packet.sequence);