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 multiclient #15557

Merged
merged 1 commit into from
Dec 6, 2024
Merged

Fix multiclient #15557

merged 1 commit into from
Dec 6, 2024

Conversation

connorwstein
Copy link
Contributor

@connorwstein connorwstein commented Dec 6, 2024

Fix a regression from #15535

}
mc.chainName = details.ChainName
}
id, err := client.ChainID(context.Background())
Copy link
Contributor Author

Choose a reason for hiding this comment

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

since we're already Dialing, we can ask for the chain ID as well

@connorwstein connorwstein marked this pull request as ready for review December 6, 2024 21:42
@connorwstein connorwstein requested review from a team as code owners December 6, 2024 21:42
if err == nil {
details, err := chainselectors.GetChainDetailsByChainIDAndFamily(id.String(), chainselectors.FamilyEVM)
if err == nil {
return nil, err
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this will always return nil, nil

// Expect defaults to be set if not provided.
mc, err := NewMultiClient(lggr, []RPC{{WSURL: s.URL}})
require.NoError(t, err)
require.NotNil(t, mc)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

missing assertion from test

@connorwstein connorwstein added this pull request to the merge queue Dec 6, 2024
Merged via the queue into develop with commit 074c1f2 Dec 6, 2024
167 checks passed
@connorwstein connorwstein deleted the fix-multi-client branch December 6, 2024 23:27
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.

3 participants