Skip to content

chore: initial infrastructure#1

Merged
bajtos merged 2 commits intomainfrom
initial-infra
Mar 17, 2025
Merged

chore: initial infrastructure#1
bajtos merged 2 commits intomainfrom
initial-infra

Conversation

@bajtos
Copy link
Member

@bajtos bajtos commented Mar 17, 2025

We have too many places where we are duplicating the helper assertOkResponse:
https://github.com/search?q=org%3ACheckerNetwork%20assertOkResponse&type=code

Let's extract it into a shared npm package.

Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
@bajtos bajtos merged commit 86b30fa into main Mar 17, 2025
4 checks passed
@bajtos bajtos deleted the initial-infra branch March 17, 2025 13:55
* @param {typeof fetch} [options.fetchFn] Custom fetch function (useful for testing)
* @param {console['log']} [options.debugLog] Debug logger
*/
export function createJsonRpcClient(url, { requestHeaders, fetchFn } = {}) {
Copy link
Member Author

Choose a reason for hiding this comment

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

Oops, I was too quick to land this PR 🙈

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.

1 participant