Skip to content

fix solc use forge std foundry #46

fix solc use forge std foundry

fix solc use forge std foundry #46

Check failure on line 1 in .github/workflows/Compile-with-typescript-v4.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/Compile-with-typescript-v4.yml

Invalid workflow file

(Line: 6, Col: 1): 'permissions' is already defined
name: Compile with typescript v4
permissions:
contents: read
permissions:
contents: read
on:
push:
branches: main
pull_request:
branches:
- "**"
workflow_dispatch:
jobs:
compile_with_typescript_v4:
name: Compile with typescript v4
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v2
with:
node-version: 16
- name: Remove packages that can't be compiled with TypeScript v4
run: rm -fr packages/hardhat-viem packages/hardhat-toolbox-viem packages/hardhat-web3-v4
- name: Remove packages that can't be compiled with TypeScript v4 from the build script
run: sed -i -E 's/packages\/(hardhat-viem|hardhat-toolbox-viem|hardhat-web3-v4) *//g' package.json
- name: Install typescript v4 in all packages
run: |
sed -i 's/"pnpm.overrides": {.*"**\/antlr4".*"}/"pnpm.overrides": {"antlr4": "4.9.3"}/' package.json
- name: Build
run: pnpm build