Skip to content

Remove unnecessary mock from provider API test helper - #1304

Merged
Gudahtt merged 1 commit into
mainfrom
remove-unnecessary-mock
May 2, 2023
Merged

Remove unnecessary mock from provider API test helper#1304
Gudahtt merged 1 commit into
mainfrom
remove-unnecessary-mock

Conversation

@Gudahtt

Copy link
Copy Markdown
Member

Description

An unnecessary mock has been removed from a helper function used by network client tests. The getEIP1559Compatibility function is only called as part of lookupNetwork (which is also mocked) as of #1236, so this has been redundant since then.

Relates to #1116

Changes

None

References

Relates to #1116

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation for new or updated code as appropriate (note: this will usually be JSDoc)
  • I've highlighted breaking changes using the "BREAKING" category above as appropriate

An unnecessary mock has been removed from a helper function used by
network client tests. The `getEIP1559Compatibility` function is only
called as part of `lookupNetwork` (which is also mocked) as of #1236,
so this has been redundant since then.
Relates to #1116
@Gudahtt
Gudahtt requested a review from a team as a code ownerMay 2, 2023 18:17

@mcmiremcmire left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Probably just a copy-paste sort of thing from the extension side, where this works a bit differently.

@Gudahtt

Copy link
Copy Markdown
MemberAuthor

Oh it was critical prior to #1236, but I missed this change in that PR

@Gudahtt
Gudahtt merged commit c19108a into mainMay 2, 2023
@Gudahtt
Gudahtt deleted the remove-unnecessary-mock branch May 2, 2023 18:29
Sign up for freeto 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

@Gudahtt@mcmire