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

fix: create client with url #101

Merged
merged 1 commit into from
Dec 12, 2024
Merged

Conversation

janndriessen
Copy link
Collaborator

@janndriessen janndriessen commented Dec 12, 2024

Updates create client to use a RPC URL as argument to be able to pass in the needed transport url (and not rely on an env var).

): Promise<WrappedToken> {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const publicClient = createClient(chainId)!
const publicClient = createClientWithUrl(chainId, rpcUrl)!
Copy link
Collaborator Author

@janndriessen janndriessen Dec 12, 2024

Choose a reason for hiding this comment

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

The issue was the createClient would try to use a internal env var which is not available when used from clients like the API. So now we're passing the RPC URL.

@janndriessen janndriessen merged commit 544d639 into main Dec 12, 2024
2 checks passed
@janndriessen janndriessen deleted the fix/create-client-with-url branch December 12, 2024 23:54
Copy link

🎉 This PR is included in version 3.18.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link
Collaborator

@0xonramp 0xonramp left a comment

Choose a reason for hiding this comment

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

LGTM

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

Successfully merging this pull request may close these issues.

2 participants