Skip to content

Commit

Permalink
fix: ignore ibc error which is non-deterministic (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
troykessler committed Mar 27, 2024
1 parent f108125 commit a34ceeb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions integrations/tendermint/src/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,19 @@ export default class Tendermint implements IRuntime {
);
}

// set attribute "ibccallbackerror-error" in ibc event "ibccallbackerror-fungible_token_packet" to empty string
if (event.type === 'ibccallbackerror-fungible_token_packet') {
event.attributes = event.attributes.map(
(attribute: IAttribute) => {
if (attribute.key === 'ibccallbackerror-error') {
attribute.value = '';
}

return attribute;
}
);
}

return event;
});
}
Expand Down

0 comments on commit a34ceeb

Please sign in to comment.