Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: cached safe overviews #4221

Draft
wants to merge 1 commit into
base: epic/multichain-safes
Choose a base branch
from

Conversation

schmanu
Copy link
Member

@schmanu schmanu commented Sep 20, 2024

What it solves

Resolves #

How this PR fixes it

How to test it

Screenshots

Checklist

  • I've tested the branch on mobile 📱
  • I've documented how it affects the analytics (if at all) 📊
  • I've written a unit/e2e test for it (if applicable) 🧑‍💻

@schmanu schmanu changed the base branch from dev to epic/multichain-safes September 20, 2024 14:43
Comment on lines +67 to +73
nextBatch.forEach((item) => {
const overview = overviews.find(
(entry) => sameAddress(entry.address.value, item.safeAddress) && entry.chainId === item.chainId,
)

item.callback({ data: overview })
})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since we're already calling the item.callback in the catch block, shouldn't this line be inside the try block?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants