From 6ea493cbb3ba189ba6fd6a41199d9fbc33f9009b Mon Sep 17 00:00:00 2001 From: cairo Date: Thu, 22 Aug 2024 17:07:21 -0700 Subject: [PATCH] Update forge for EOF --- eof-solc | 3 +++ foundry.toml | 10 ++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) create mode 100755 eof-solc diff --git a/eof-solc b/eof-solc new file mode 100755 index 000000000..b7850231f --- /dev/null +++ b/eof-solc @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +docker run --rm -i -v "$(pwd):/app/root" ghcr.io/paradigmxyz/forge-eof:latest "$@" diff --git a/foundry.toml b/foundry.toml index 3f60b7cbb..726bc40b9 100644 --- a/foundry.toml +++ b/foundry.toml @@ -1,14 +1,16 @@ [profile.default] -solc_version = '0.8.24' -evm_version = 'cancun' -optimizer = true -optimizer-runs = 200 src = 'contracts' out = 'out' libs = ['node_modules', 'lib'] test = 'test' cache_path = 'cache_forge' +# settings required for EOF +via_ir = true +evm_version = "prague" +eof_version = 1 +solc = "./eof-solc" + [fuzz] runs = 5000 max_test_rejects = 150000