Skip to content

Commit

Permalink
set paris as evm environment in foundry profile
Browse files Browse the repository at this point in the history
  • Loading branch information
eutopian committed Nov 1, 2024
1 parent 188f3ab commit 8f37a80
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
1 change: 1 addition & 0 deletions contracts/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ solc_version = '0.8.24'
src = 'src/v0.8/workflow'
test = 'src/v0.8/workflow/test'
via_ir = true # reconsider using the --via-ir flag if compilation takes too long
evm_version = 'paris'

[profile.shared]
optimizer_runs = 1_000_000
Expand Down
9 changes: 2 additions & 7 deletions contracts/scripts/native_solc_compile_all_workflow
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,8 @@ SOLC_VERSION="0.8.24"
OPTIMIZE_RUNS=1000000

SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"

pip3 install --upgrade pip
python3 -m pip install --require-hashes -r "$SCRIPTPATH"/requirements.txt

if ! solc-select versions | grep -q "$SOLC_VERSION"; then
solc-select install $SOLC_VERSION
fi

solc-select install $SOLC_VERSION
solc-select use $SOLC_VERSION
export SOLC_VERSION=$SOLC_VERSION

Expand All @@ -31,6 +25,7 @@ compileContract () {
solc --overwrite --via-ir --optimize --optimize-runs $OPTIMIZE_RUNS --metadata-hash none \
-o "$ROOT"/contracts/solc/v$SOLC_VERSION/"$contract" \
--abi --bin --allow-paths "$ROOT"/contracts/src/v0.8\
--evm-version paris \
"$ROOT"/contracts/src/v0.8/"$1"
}

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
GETH_VERSION: 1.13.8
workflow_registry_wrapper: ../../../contracts/solc/v0.8.24/WorkflowRegistry/WorkflowRegistry.abi ../../../contracts/solc/v0.8.24/WorkflowRegistry/WorkflowRegistry.bin 23f395f03fe1d8ee41e11dc11be3bd8c90fabb901db4266ae77a3478d1e9c27f
workflow_registry_wrapper: ../../../contracts/solc/v0.8.24/WorkflowRegistry/WorkflowRegistry.abi ../../../contracts/solc/v0.8.24/WorkflowRegistry/WorkflowRegistry.bin 55bdbe752d2f44f21c8730d752d2456e83bfbddffb005ca67513b22cb3d4671c

0 comments on commit 8f37a80

Please sign in to comment.