diff --git a/packages/account-postgres-sink-service/src/utils/cachedIdlFetch.ts b/packages/account-postgres-sink-service/src/utils/cachedIdlFetch.ts index 519580c05..46ba75f26 100644 --- a/packages/account-postgres-sink-service/src/utils/cachedIdlFetch.ts +++ b/packages/account-postgres-sink-service/src/utils/cachedIdlFetch.ts @@ -20,8 +20,7 @@ const cachedIdlFetch = (() => { cache.delete(programId); cache.set(programId, idl); } else { - try { - idl = await anchor.Program.fetchIdl(programId, provider); + idl = await anchor.Program.fetchIdl(programId, provider); if (idl) { cache.set(programId, idl); @@ -38,5 +37,3 @@ const cachedIdlFetch = (() => { return { fetchIdl }; })(); - -export default cachedIdlFetch;