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(types): chain-info const #9496

Merged
merged 1 commit into from
Jun 12, 2024
Merged

fix(types): chain-info const #9496

merged 1 commit into from
Jun 12, 2024

Conversation

turadg
Copy link
Member

@turadg turadg commented Jun 12, 2024

refs: #9063

Description

When we started fetching the data by JSON, the import of JSON lost the string values, widening to string. This made the string templates fail. It also widened true and false to boolean, which would prevent the feature inference for what a Chain can do.

This wraps in const so the actual values propagate in the type.

Security Considerations

none

Scaling Considerations

none

Documentation Considerations

none

Testing Considerations

CI

Upgrade Considerations

none

@turadg turadg requested review from dckc and 0xpatrickdev June 12, 2024 17:45
Copy link

cloudflare-workers-and-pages bot commented Jun 12, 2024

Deploying agoric-sdk with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1daa3e2
Status: ✅  Deploy successful!
Preview URL: https://806d9e14.agoric-sdk.pages.dev
Branch Preview URL: https://ta-ibc-templates.agoric-sdk.pages.dev

View logs

@turadg turadg added the automerge:rebase Automatically rebase updates, then merge label Jun 12, 2024
When we started fetching the data by JSON, the import of JSON lost the string values, widening to `string`. This made the string templates fail.
It also widened true and false to `boolean`, which would prevent the feature inference for what a Chain can do.

This wraps in `const` so the actual values propagate in the type.
@mergify mergify bot merged commit 83d470b into master Jun 12, 2024
63 checks passed
@mergify mergify bot deleted the ta/IBC-templates branch June 12, 2024 20:43
@dckc
Copy link
Member

dckc commented Jun 12, 2024

I don't see Umee / UX Chain. Not even in the fetched chain info. odd.

When I add umee to chainNames in fetch-chain-info.ts, I see that it crashes. hm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge:rebase Automatically rebase updates, then merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants