Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add optional Headers param to fetchChain (#4793)
### TL;DR Added an optional Headers parameter to the `fetchChain` function. ### What changed? - Introduced a new optional `headers` parameter to the `fetchChain` function in `apps/dashboard/src/utils/fetchChain.ts`. - Updated the fetch request to include the provided headers. - Created a new changeset file to document this patch-level change. ### How to test? 1. Call the `fetchChain` function without providing headers to ensure backward compatibility. 2. Call the `fetchChain` function with custom headers and verify they are included in the request. 3. Confirm that the function still correctly fetches chain metadata from the API. ### Why make this change? This change allows for greater flexibility when making API requests to fetch chain metadata. By allowing custom headers, it enables use cases such as authentication, caching control, or other custom requirements when interacting with the API.
- Loading branch information