-
Notifications
You must be signed in to change notification settings - Fork 14
Use forge fmt over prettier #212
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
Conversation
Since eslint-config-prettier only turns off rules and removing it doesn't trigger issues, it was not doing anything for us
| - 'contracts/src/v0.8/vrf/**/*.sol' | ||
| shared: | ||
| - 'contracts/src/v0.8/shared/**/*.sol' | ||
| - 'contracts/src/v0.8/*.sol' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Too wide, this would mean every single Solidity change triggers the shared CI.
| @@ -1,87 +0,0 @@ | |||
| # This workflow is not active and will be removed on July 1st, 2025 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is past July 1st
|
|
||
| import fs from 'fs' | ||
| import { exec } from 'child_process' | ||
| import { createHash } from 'crypto' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes the new HH paths and removes the dependency on ethers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "_comment2_logger": "See https://github.com/ethers-io/ethers.js/issues/379 we pin this version since that's what was used in the old yarn lockfile", | ||
| "overrides": { | ||
| "@ethersproject/logger": "5.0.6", | ||
| "@ethersproject/[email protected]>ws": "7.5.10", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove old overrides that are no longer needed
| "solhint": "^5.2.0", | ||
| "solhint-plugin-chainlink-solidity": "github:smartcontractkit/chainlink-solhint-rules#v1.2.1", | ||
| "solhint-plugin-prettier": "^0.1.0", | ||
| "ts-node": "^10.9.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace ts-node with tsx to fix the Automation scripts
This PR reformats all Solidity code with forge fmt. It also cleans up some of the leftover NPM related imports and issues from #209
!!! The only bytecode changes is to an Automation interface that was generated by abi-to-sol that was out of date. One function is payable now. No other bytecode has changed.