diff --git a/.changeset/neat-turkeys-cry.md b/.changeset/neat-turkeys-cry.md new file mode 100644 index 0000000..79fc94f --- /dev/null +++ b/.changeset/neat-turkeys-cry.md @@ -0,0 +1,5 @@ +--- +'@rosen-chains/abstract-chain': patch +--- + +Rethrow any unexpected errors while verifying events diff --git a/packages/abstract-chain/lib/AbstractChain.ts b/packages/abstract-chain/lib/AbstractChain.ts index 140cd9a..c1e39dd 100644 --- a/packages/abstract-chain/lib/AbstractChain.ts +++ b/packages/abstract-chain/lib/AbstractChain.ts @@ -253,15 +253,8 @@ abstract class AbstractChain { `Event [${eventId}] is not valid, lock tx [${event.sourceTxId}] is not available in network` ); return false; - } else if ( - e instanceof FailedError || - e instanceof NetworkError || - e instanceof UnexpectedApiError - ) { - throw Error(`Skipping event [${eventId}] validation: ${e}`); } else { - this.logger.warn(`Event [${eventId}] validation failed: ${e}`); - return false; + throw Error(`Skipping event [${eventId}] validation: ${e}`); } } };