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

integrations: Remove extra fetching of runtime public key #379

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions integrations/viem-v2/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,6 @@ export async function createSapphireSerializer<
const fetcher = new KeyFetcher();
const provider = client as EthereumProvider;
await fetcher.fetch(provider);
setTimeout(async () => {
Copy link
Member

Choose a reason for hiding this comment

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

Lets document the reason for having the interval timer.

It be changed to setInterval, so it's continuous.

And the interval ID should be unref'd

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agree. unref seems best right now.

Copy link
Member

Choose a reason for hiding this comment

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

Have you been able to reproduce the problem with a test? Would be good to have this in CI

await fetcher.fetch(provider);
}, fetcher.timeoutMilliseconds);

const wrappedSerializer = ((tx, sig?) => {
if (!sig) {
Expand Down
Loading