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

build: upgrade to Solidity v0.8.18 #316

Merged
merged 6 commits into from
Feb 11, 2023
Merged

build: upgrade to Solidity v0.8.18 #316

merged 6 commits into from
Feb 11, 2023

Conversation

PaulRBerg
Copy link
Member

@PaulRBerg PaulRBerg commented Feb 4, 2023

Description

Closes #314 and also implements named parameters for mappings.

NOTE: the CI lint job is failing but this is because prettier-plugin-solidity doesn't support named mapping parameters just yet (prettier-solidity/prettier-plugin-solidity#800).

UPDATE: prettier-plugin-solidity@1.1.2 just shipped, which added support for named mapping parameters (as per prettier-solidity/prettier-plugin-solidity#803). However, the lint job is still failing, because Solhint doesn't support named mapping params just yet (protofire/solhint#397).

Changelog

  • build: upgrade to solc v0.8.18
  • refactor: name mapping parameters

@PaulRBerg PaulRBerg force-pushed the prb/solc-update branch 2 times, most recently from 181f257 to 7c0bada Compare February 4, 2023 20:55
@PaulRBerg PaulRBerg force-pushed the main branch 2 times, most recently from 1968f5a to 82c69c2 Compare February 6, 2023 19:41
@PaulRBerg PaulRBerg force-pushed the prb/solc-update branch 4 times, most recently from 62647bf to b47f239 Compare February 8, 2023 08:59
Copy link
Member

@andreivladbrg andreivladbrg left a comment

Choose a reason for hiding this comment

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

Couldn't find a place where you missed to change to "0.8.18".

Let's add the compiler version in the settings.json file:

"solidity.compileUsingRemoteVersion": "v0.8.18"

foundry.toml Show resolved Hide resolved
@PaulRBerg
Copy link
Member Author

Let's add the compiler version in the settings.json file:

Done ✅

@PaulRBerg PaulRBerg force-pushed the prb/solc-update branch 4 times, most recently from 22da4f4 to 0977f4e Compare February 9, 2023 19:22
@PaulRBerg
Copy link
Member Author

I will temporarily disable Solhint in the lint script until they add support for Solidity v0.8.18.

@PaulRBerg PaulRBerg merged commit 4cf28e6 into main Feb 11, 2023
@PaulRBerg PaulRBerg deleted the prb/solc-update branch February 11, 2023 14:49
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.

Upgrade to Solidity v0.8.18
2 participants