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

chore: bump pragma #155

Merged
merged 5 commits into from
Jun 5, 2024
Merged

chore: bump pragma #155

merged 5 commits into from
Jun 5, 2024

Conversation

mfw78
Copy link
Contributor

@mfw78 mfw78 commented Jun 4, 2024

Description

This PR bumps the pragma to support up-to-and-including solidity (0.8.26). This allows the foundry migration taking place to have tests written in solc 0.8.x, reducing redundancy / effort with writing the associated test contracts.

It is important that the bytecode generated for production still be compliant with 0.7.6 (save for potential issues associated with the metadata hash appended by solc). To facilitate this, the test pipeline uses a multi-version matrix strategy to ensure that the contracts remain able to be built with 0.7.6.

A minor miscellaneous patch is also included for VS Code's solidity configuration, reducing configuration size.

Test Plan

  1. Verify test CI/CD runs 0.7.6 and 0.8.26 matrices.
  2. Verify that the ci CI/CD runs (hardhat) and completes successfully.

Related Issues

Related: #106

@mfw78 mfw78 added infra Infra, devops, CI and related tasks E:5.2 Contracts migrations See https://github.com/cowprotocol/pm/issues/32 for details labels Jun 4, 2024
@mfw78 mfw78 self-assigned this Jun 4, 2024
@mfw78 mfw78 requested a review from a team as a code owner June 4, 2024 15:31
@mfw78 mfw78 requested a review from fleupold June 4, 2024 15:39
fedgiac
fedgiac previously approved these changes Jun 4, 2024
Copy link
Contributor

@fedgiac fedgiac left a comment

Choose a reason for hiding this comment

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

Nice, I expeced it to be harder to bump the Solidity version to v0.8.

.vscode/settings.json Show resolved Hide resolved
.github/workflows/test.yml Outdated Show resolved Hide resolved
Co-authored-by: Federico Giacon <[email protected]>
@mfw78 mfw78 enabled auto-merge (squash) June 4, 2024 18:13
@mfw78 mfw78 mentioned this pull request Jun 5, 2024
@mfw78 mfw78 merged commit 6f1a7e9 into main Jun 5, 2024
8 checks passed
@mfw78 mfw78 deleted the pragma-bump branch June 5, 2024 14:09
@github-actions github-actions bot locked and limited conversation to collaborators Jun 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
E:5.2 Contracts migrations See https://github.com/cowprotocol/pm/issues/32 for details infra Infra, devops, CI and related tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants