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

Set LINK native feed in VRFV2PlusWrapper to immutable #12592

Merged
merged 7 commits into from
Mar 26, 2024

Conversation

ibrajer
Copy link
Contributor

@ibrajer ibrajer commented Mar 26, 2024

  • LINK native feed set to immutable, removed setter function
  • both LINK token and LINK native feed can be set to zero addresses
  • fixed Foundry tests

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.

Copy link
Contributor

Go solidity wrappers are out-of-date, regenerate them via the make wrappers-all command

ibrajer and others added 4 commits March 26, 2024 17:20
* LINK native feed set to immutable, removed setter function
* both LINK token and LINK native feed can be set to zero addresses
* fixed Foundry tests
Co-authored-by: Lee Yik Jiun <yikjiun.lee@smartcontract.com>
@ibrajer ibrajer force-pushed the chore/vrfv2plus-wrapper-immutable-link-native-feed branch from 9a189a7 to 4d630f2 Compare March 26, 2024 16:29
Copy link
Contributor

Go solidity wrappers are out-of-date, regenerate them via the make wrappers-all command

@@ -30,6 +30,7 @@ contract VRFV2PlusWrapper is ConfirmedOwner, TypeAndVersionInterface, VRFConsume
// solhint-disable-next-line chainlink-solidity/prefix-immutable-variables-with-i
uint256 public immutable SUBSCRIPTION_ID;
LinkTokenInterface internal immutable i_link;
AggregatorV3Interface public immutable i_link_native_feed;
Copy link
Contributor

Choose a reason for hiding this comment

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

*nit can be internal right? since there is a new getter below?

@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

@ibrajer ibrajer added this pull request to the merge queue Mar 26, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 26, 2024
@ibrajer ibrajer added this pull request to the merge queue Mar 26, 2024
Merged via the queue into develop with commit b512ef5 Mar 26, 2024
119 checks passed
@ibrajer ibrajer deleted the chore/vrfv2plus-wrapper-immutable-link-native-feed branch March 26, 2024 18:54
kidambisrinivas pushed a commit that referenced this pull request Mar 27, 2024
* Set LINK native feed in VRFV2PlusWrapper to immutable

* LINK native feed set to immutable, removed setter function
* both LINK token and LINK native feed can be set to zero addresses
* fixed Foundry tests

* Added solhint disable for LINK_NATIVE_FEED immutable var

* Added changesets

* Delete storage slot padding from VRFV2PlusWrapper

Co-authored-by: Lee Yik Jiun <yikjiun.lee@smartcontract.com>

* Renamed LINK_NATIVE_FEED to i_link_native_feed, generated Go wrappers

* Fixed linter issue

* Link native feed address variable set to internal

---------

Co-authored-by: Lee Yik Jiun <yikjiun.lee@smartcontract.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.

3 participants