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: use network-config for ibc transfer rpc #123

Merged
merged 1 commit into from
Sep 13, 2023
Merged

fix: use network-config for ibc transfer rpc #123

merged 1 commit into from
Sep 13, 2023

Conversation

samsiegart
Copy link
Contributor

@cloudflare-workers-and-pages
Copy link

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: d323959
Status: ✅  Deploy successful!
Preview URL: https://2b9f526c.wallet-app.pages.dev
Branch Preview URL: https://ibc-rpc.wallet-app.pages.dev

View logs

Copy link
Contributor

@iomekam iomekam left a comment

Choose a reason for hiding this comment

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

LGTM


return {
rpc: rpcAddrs[Math.floor(Math.random() * rpcAddrs.length)],
chainName,
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we have a need for chainName?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not currently, I just copied it from https:/Agoric/dapp-inter/blob/main/src/utils/rpc.ts

I thought about using it instead of https:/Agoric/wallet-app/pull/123/files#diff-abea311c6054fa50321c5819ce3d8747cea8edd05cbb6a8e2bc2f5afefb9a515R12, but that const is exported for this check, and I didn't want to refactor that part to make an rpc request yet.

@samsiegart samsiegart merged commit 28a29f6 into main Sep 13, 2023
2 checks passed
@samsiegart samsiegart deleted the ibc-rpc branch September 13, 2023 17:13
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