Skip to content

Conversation

@tomatrow
Copy link

@tomatrow tomatrow commented Jun 12, 2025

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Description

none

@samholmes samholmes self-requested a review June 12, 2025 22:44
Copy link
Collaborator

@samholmes samholmes left a comment

Choose a reason for hiding this comment

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

Nice PR! Thanks for giving this a stab.

I'd recommend squashing the wip commit with the first commit since it makes sense as one atomic change together.

I'd also recommend setting up your editor to catch ESLint errors for you following the project's rules. Some of the requested changes in the PR would have been caught by tooling which is why it's recommended to use a good integrated linter/type-checker.

I can't wait to test this out and give it a go once the PR fixups are in place. 🔥

@tomatrow tomatrow force-pushed the aj/add-service-keys-for-evm-currencies branch from e3c5453 to 35d8645 Compare June 17, 2025 04:39
Copy link
Collaborator

@samholmes samholmes left a comment

Choose a reason for hiding this comment

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

I haven't fully finished my re-review. But here's some immediate feedback.

@tomatrow tomatrow force-pushed the aj/add-service-keys-for-evm-currencies branch from 35d8645 to df65d34 Compare June 30, 2025 20:34
Copy link
Collaborator

@samholmes samholmes left a comment

Choose a reason for hiding this comment

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

Almost there. Pull my fixup commit on the branch of the same name on this repo.

Comment on lines 1 to 5
export function getServiceKeyIndex(url: string): string | undefined {
try {
return new URL(url).host
} catch {}
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

.host is never undefined so omit it in the return type.

I see that you're using undefined as a case at the call-site. It seems like what you want is a utility that does a lookup and returns a string or undefined if the lookup succeeds or fails. I made a fixup commit to aj/add-service-keys-for-evm-currencies branch which you can pull from that has the suggested solution.

@tomatrow tomatrow force-pushed the aj/add-service-keys-for-evm-currencies branch from df65d34 to 31b8831 Compare July 8, 2025 03:59
@tomatrow tomatrow force-pushed the aj/add-service-keys-for-evm-currencies branch from bdf7b9a to 5716bf6 Compare July 9, 2025 19:59
Copy link
Collaborator

@samholmes samholmes left a comment

Choose a reason for hiding this comment

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

I think this is ready to go. There just is conflicts needing resolved with a rebase. I'll double check the PR after the conflicts are resolved before merging. I'll also run some tests.

Comment on lines 14 to 15
const host = new URL(url, `https://${url}`).host
return host
Copy link
Collaborator

Choose a reason for hiding this comment

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

While you're at the rebase. Feel free to change this to:

const url =  = new URL(url, `https://${url}`)
return url.host

Just so that way we can easily insert a console.log(url) at a later point for debugging.

@samholmes samholmes marked this pull request as ready for review August 4, 2025 20:04
@tomatrow tomatrow force-pushed the aj/add-service-keys-for-evm-currencies branch 2 times, most recently from d515a1e to fe34bd9 Compare August 10, 2025 23:48
@samholmes samholmes force-pushed the aj/add-service-keys-for-evm-currencies branch from fe34bd9 to f1daf49 Compare September 4, 2025 18:15
@samholmes samholmes force-pushed the aj/add-service-keys-for-evm-currencies branch from f1daf49 to 60931c5 Compare September 22, 2025 17:14
@samholmes samholmes force-pushed the aj/add-service-keys-for-evm-currencies branch from 60931c5 to 80e245e Compare December 2, 2025 19:33
@samholmes
Copy link
Collaborator

Resubmitted PR: #1005

The reason is because the PR has gotten stale is now being picked up in a new PR to be tested on the latest master branch and to be published.

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