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 c881e2a
Showing 1 changed file with 1 addition and 2 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 Down

0 comments on commit c881e2a

Please sign in to comment.