Skip to content

Commit

Permalink
fix cacheIdlFetch
Browse files Browse the repository at this point in the history
  • Loading branch information
bryzettler committed Dec 4, 2024
1 parent df3c3eb commit 570745a
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -38,5 +37,3 @@ const cachedIdlFetch = (() => {

return { fetchIdl };
})();

export default cachedIdlFetch;

0 comments on commit 570745a

Please sign in to comment.