Skip to content

Commit 157ae3e

Browse files
authored
foundry.toml ignore warnings (#122)
* foundry.toml ignore warnings * bump retries, delay, verify
1 parent 678d3e3 commit 157ae3e

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.github/scripts/tempo-check.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ sleep 5
4747
# If `VERIFIER_URL` is set, add the `--verify` flag to forge commands.
4848
VERIFY_ARGS=()
4949
if [[ -n "${VERIFIER_URL:-}" ]]; then
50-
VERIFY_ARGS+=(--verify)
50+
VERIFY_ARGS+=(--verify --retries 10 --delay 10)
5151
fi
5252

5353
echo -e "\n=== FORGE SCRIPT DEPLOY ==="

crates/forge/assets/foundry.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[profile.default]
2+
src = "src"
3+
out = "out"
4+
libs = ["lib"]
5+
ignored_error_codes = [2424, 4591]

crates/forge/src/cmd/init.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -237,12 +237,9 @@ impl InitArgs {
237237
fs::write(readme_path, include_str!("../../assets/README.md"))?;
238238
}
239239

240-
// write foundry.toml, if it doesn't exist already
241-
let dest = root.join(Config::FILE_NAME);
240+
// write foundry.toml
241+
fs::write(root.join(Config::FILE_NAME), include_str!("../../assets/foundry.toml"))?;
242242
let mut config = Config::load_with_root(&root)?;
243-
if !dest.exists() {
244-
fs::write(dest, config.clone().into_basic().to_string_pretty()?)?;
245-
}
246243
let git = self.install.git(&config);
247244

248245
// set up the repo

0 commit comments

Comments
 (0)