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

improve some nits and refactor foundry tests #12522

Merged
merged 6 commits into from
Mar 21, 2024
Merged

Conversation

FelixFan1992
Copy link
Contributor

No description provided.

Copy link
Contributor

I see you updated files related to core. Please run pnpm changeset in the root directory to add a changeset.

Copy link
Contributor

I see you updated files related to contracts. Please run pnpm changeset in the contracts directory to add a changeset.

@FelixFan1992 FelixFan1992 marked this pull request as ready for review March 21, 2024 14:48
@FelixFan1992 FelixFan1992 requested review from a team and RensR as code owners March 21, 2024 14:48
@FelixFan1992 FelixFan1992 requested review from RyanRHall and shileiwill and removed request for a team and RensR March 21, 2024 15:19
RyanRHall
RyanRHall previously approved these changes Mar 21, 2024
Comment on lines +1023 to +1029
PayoutMode mode = s_payoutMode;
for (uint256 i = 0; i < billingTokens.length; i++) {
IERC20 token = billingTokens[i];
BillingConfig memory config = billingConfigs[i];

// if LINK is a billing option, payout mode must be ON_CHAIN
if (address(token) == address(i_link) && s_payoutMode == PayoutMode.OFF_CHAIN) {
if (address(token) == address(i_link) && mode == PayoutMode.OFF_CHAIN) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this change probably increases gas, fwiw, since we read the thing into memory now

@FelixFan1992 FelixFan1992 added this pull request to the merge queue Mar 21, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 21, 2024
@RyanRHall RyanRHall added this pull request to the merge queue Mar 21, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 21, 2024
move addFunds() tests to foundry for auto v2.3

add tests for onTokenTransfer()
@cl-sonarqube-production
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@FelixFan1992 FelixFan1992 added this pull request to the merge queue Mar 21, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 21, 2024
@RyanRHall RyanRHall added this pull request to the merge queue Mar 21, 2024
@FelixFan1992 FelixFan1992 removed this pull request from the merge queue due to a manual request Mar 21, 2024
@FelixFan1992 FelixFan1992 added this pull request to the merge queue Mar 21, 2024
Merged via the queue into develop with commit 8862016 Mar 21, 2024
116 checks passed
@FelixFan1992 FelixFan1992 deleted the AUTO-9179-cleanup branch March 21, 2024 22:57
silaslenihan pushed a commit that referenced this pull request Mar 21, 2024
* improve some nits and refactor foundry tests

* add changesets

* fix

* fix tests

* write registerUpkeep() foundry tests for auto v2.3 (#12535)

move addFunds() tests to foundry for auto v2.3

add tests for onTokenTransfer()

---------

Co-authored-by: Ryan Hall <RyanRHall@users.noreply.github.com>
github-merge-queue bot pushed a commit that referenced this pull request Mar 28, 2024
…ator (#12534)

* Applied LimitMultiplier to chainSpecificGasLimit in all gas estimators

* Added changeset

* altered tests to use a limit multiplier of 1.5 rather than 1

* improve some nits and refactor foundry tests (#12522)

* improve some nits and refactor foundry tests

* add changesets

* fix

* fix tests

* write registerUpkeep() foundry tests for auto v2.3 (#12535)

move addFunds() tests to foundry for auto v2.3

add tests for onTokenTransfer()

---------

Co-authored-by: Ryan Hall <RyanRHall@users.noreply.github.com>

* Added error checks

* updated existing tests

* Extracted fee limit multiplier out of indivudal gas estimators, into WrappedEvmEstimator

* Cleaned up unused LimitMultipliers

* Removed unused limit multipliers in tests and cleaned up

* removed chainSpecificGasLimit from BumpDynamicFee, GetDynamicFee

* Fixed failing tests

---------

Co-authored-by: FelixFan1992 <fankejin@gmail.com>
Co-authored-by: Ryan Hall <RyanRHall@users.noreply.github.com>
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