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

Network Dropdown #94

Merged
merged 3 commits into from
Mar 8, 2024
Merged

Network Dropdown #94

merged 3 commits into from
Mar 8, 2024

Conversation

samsiegart
Copy link
Contributor

fixes: Agoric/agoric-sdk#8933

Tested locally with Agoric/dapp-offer-up@b73b8c0

Screenshot

Screenshot 2024-03-07 at 1 38 33 PM

@samsiegart samsiegart force-pushed the chain-selector branch 2 times, most recently from 796ccbb to ca4d4ab Compare March 7, 2024 22:05
Comment on lines +28 to +32
// testChain is optional, defaulting to Agoric mainnet otherwise.
testChain: {
chainId: 'agoriclocal',
chainName: 'agoric-local',
},
Copy link
Member

@0xpatrickdev 0xpatrickdev Mar 8, 2024

Choose a reason for hiding this comment

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

nit: is this nesting/testChain key necessary? Maybe just make chainId and chainName optional, noting they will be pulled from chain-registry if not provided?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I guess the benefit of nesting is:

  • You can couple the properties so that you either need both or neither
  • It makes it clearer that they're used for test chains rather than mainnet

I suppose there would be a way with ts to do the coupling but I'm not sure if it would be as neat. I lean towards keeping the nesting but just a preference.

@samsiegart samsiegart enabled auto-merge (rebase) March 8, 2024 20:11
@samsiegart samsiegart merged commit 8fc28e8 into main Mar 8, 2024
1 check passed
@samsiegart samsiegart deleted the chain-selector branch March 8, 2024 20:12
@LuqiPan
Copy link

LuqiPan commented Mar 8, 2024

Did you happen to know why I don't see mainnet in the drop down if Agoric Local is selected? See screen recording below for the inconsistent behavior.

Screen.Recording.2024-03-08.at.12.45.06.PM.mov

@samsiegart
Copy link
Contributor Author

@LuqiPan Maybe because it's autocompleting and you have to clear the input for "Agoric" to show up (or erase all the characters after "Agoric...". I guess this is an unwelcome quirk of the interchain-ui component...

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.

Create Chain Selector UI Component
3 participants