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

feat: suggest chain #35

Merged
merged 2 commits into from
Aug 21, 2023
Merged

feat: suggest chain #35

merged 2 commits into from
Aug 21, 2023

Conversation

samsiegart
Copy link
Contributor

fixes #32

@samsiegart samsiegart requested a review from turadg August 19, 2023 06:03
Copy link
Member

@turadg turadg left a comment

Choose a reason for hiding this comment

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

Approved contingent on a couple requests

Comment on lines +59 to +64
// @ts-expect-error Check for Keplr
const { keplr } = window;

if (!keplr) {
throw Error('Missing Keplr');
}
Copy link
Member

Choose a reason for hiding this comment

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

please drop the suppression.

Suggested change
// @ts-expect-error Check for Keplr
const { keplr } = window;
if (!keplr) {
throw Error('Missing Keplr');
}
if (!('keplr' in window)) {
throw Error('Missing Keplr');
}
const { keplr } = window;

also consider a global declaration that adds keplr?: Keplr to window so it's typed.

caption = `Agoric ${subdomain}`;
}

const walletUrlForStaking = `https://${url.hostname}.staking.agoric.app`;
Copy link
Member

Choose a reason for hiding this comment

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

this template is more of a config. please group with other such config.

@samsiegart samsiegart enabled auto-merge (rebase) August 21, 2023 17:44
@samsiegart samsiegart merged commit 8e1d7e9 into main Aug 21, 2023
1 check passed
@samsiegart samsiegart deleted the suggest-chain branch August 21, 2023 17:45
@samsiegart
Copy link
Contributor Author

samsiegart commented Aug 21, 2023

Sorry, I enabled automerge on this mistakenly thinking it was my other pull request. I'm going to follow up right now with suggested changes.

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.

Add util for "suggest chain"
2 participants