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(githooks): add pre-commit script to sync solc version #36

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Sep 13, 2024

  1. chore(githooks): add pre-commit script to sync solc version

    This commit adds a new pre-commit script called "pre-commit-solc-sync" to the githooks directory. The script is responsible for extracting the solc version from the "foundry.toml" file and updating the ".vscode/settings.json" file with the extracted version. If the "solidity.compileUsingRemoteVersion" key already exists in the settings file, the script updates the version. Otherwise, it modifies the last key, adds the new key, and closes the JSON object. Finally, the updated settings file is added to the commit.
    
    The purpose of this change is to automate the synchronization of the solc version used for Solidity compilation in the project everywhere else its also need to be configured configured.
    
    See juanfranblanco/vscode-solidity#463
    3esmit committed Sep 13, 2024
    Configuration menu
    Copy the full SHA
    acf1cb4 View commit details
    Browse the repository at this point in the history