From 9be090be55dc10e4bd50ba00698a34b8a1ef6069 Mon Sep 17 00:00:00 2001 From: Troy Kessler <43882936+troykessler@users.noreply.github.com> Date: Wed, 3 Jul 2024 16:21:44 +0200 Subject: [PATCH] feat: update tendermint-ssync (#143) --- integrations/tendermint-ssync/src/runtime.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/integrations/tendermint-ssync/src/runtime.ts b/integrations/tendermint-ssync/src/runtime.ts index ff20104d..0d024f82 100644 --- a/integrations/tendermint-ssync/src/runtime.ts +++ b/integrations/tendermint-ssync/src/runtime.ts @@ -213,11 +213,7 @@ export default class TendermintSSync implements IRuntime { `${this.config.api}/list_snapshots` ); - if (!snapshots) { - throw new Error(`404: Snapshot with height ${height} not found`); - } - - const snapshot: ISnapshot = snapshots.find( + const snapshot: ISnapshot = (snapshots || []).find( (s: ISnapshot) => +s.height === height );