Skip to content

Commit bcc78eb

Browse files
grandizzymablrzerosnacks0xrusowskymattsse
authored
v1.3.1 backports (foundry-rs#11207)
* fix(cast): use all providers if local artifacts used (foundry-rs#11090) * fix(cast): use all providers if local artifacts used * Fix * fix(cast): improve handling of `mktx --raw-unsigned` with runtime validation (foundry-rs#11111) * fix(mktx): improve handling of `--raw-unsigned` with runtime validation - Updated the logic for handling the `--from` argument in the `run` function. - Added validation for required `nonce` parameter when `--from` is not provided, ensuring necessary transaction details are specified. - Used `Address::ZERO` as a placeholder when there is no need to query provider - unit tests * fix: fmt * fix(`anvil`): unwrap panic in `eth/backend/mem/mod.rs` (foundry-rs#11141) make typed request casting not panic and return useful error to user * fix(forge): consistent handling unresolved imports (foundry-rs#11164) * fix(forge): consistent handling unresolved imports * Add test * fix(lint): exclude disabled ids in multi-lint passes (foundry-rs#11122) * fix: use empty 7702 auths (foundry-rs#11182) * fix(forge): bump compilers to fix remapping sol file (foundry-rs#11184) * Bump compilers 0.18.2 * Add test * fix(coverage): disambiguate duplicate function names (foundry-rs#11188) * fix(forge): set state changes journal in active fork (foundry-rs#11196) * chore(ci): fix `typos` CI job failing (foundry-rs#11198) fix typos * Bump version 1.3.1 (foundry-rs#11199) * fix(forge): improve error messages for etherscan verification failures (foundry-rs#11194) * fix(forge): improve error messages for etherscan verification failures * fix: cargo clippy * tests(forge): add tests for unknown chain id * fix: err formating for EtherscanConfigError --------- Co-authored-by: zerosnacks <95942363+zerosnacks@users.noreply.github.com> * chore(tests): bump forge-std version (foundry-rs#11174) * chore: bump forge-std version used for tests * Fixes --------- Co-authored-by: DaniPopes <DaniPopes@users.noreply.github.com> Co-authored-by: grandizzy <grandizzy.the.egg@gmail.com> --------- Co-authored-by: Mablr <59505383+mablr@users.noreply.github.com> Co-authored-by: zerosnacks <95942363+zerosnacks@users.noreply.github.com> Co-authored-by: 0xrusowsky <90208954+0xrusowsky@users.noreply.github.com> Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de> Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Co-authored-by: Shiyas Mohammed <83513144+shiyasmohd@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: DaniPopes <DaniPopes@users.noreply.github.com>
1 parent b918f9b commit bcc78eb

File tree

31 files changed

+640
-185
lines changed

31 files changed

+640
-185
lines changed

Cargo.lock

Lines changed: 41 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ members = [
2929
resolver = "2"
3030

3131
[workspace.package]
32-
version = "1.3.0"
32+
version = "1.3.1"
3333
edition = "2024"
3434
# Remember to update clippy.toml as well
3535
rust-version = "1.88"
@@ -205,7 +205,7 @@ foundry-linking = { path = "crates/linking" }
205205

206206
# solc & compilation utilities
207207
foundry-block-explorers = { version = "0.20.0", default-features = false }
208-
foundry-compilers = { version = "0.18.0", default-features = false }
208+
foundry-compilers = { version = "0.18.2", default-features = false }
209209
foundry-fork-db = "0.16"
210210
solang-parser = { version = "=0.3.9", package = "foundry-solang-parser" }
211211
solar-ast = { version = "=0.1.5", default-features = false }

crates/anvil/core/src/eth/transaction/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ pub fn transaction_request_to_typed(
8181
to: to?.into_to()?,
8282
chain_id: 0,
8383
access_list: access_list.unwrap_or_default(),
84-
authorization_list: authorization_list.unwrap(),
84+
authorization_list: authorization_list.unwrap_or_default(),
8585
}));
8686
}
8787

crates/cast/src/cmd/call.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use foundry_compilers::artifacts::EvmVersion;
2121
use foundry_config::{
2222
Config,
2323
figment::{
24-
self, Figment, Metadata, Profile,
24+
self, Metadata, Profile,
2525
value::{Dict, Map},
2626
},
2727
};
@@ -191,7 +191,7 @@ pub enum CallSubcommands {
191191

192192
impl CallArgs {
193193
pub async fn run(self) -> Result<()> {
194-
let figment = Into::<Figment>::into(&self.eth).merge(&self);
194+
let figment = self.eth.rpc.clone().into_figment(self.with_local_artifacts).merge(&self);
195195
let evm_opts = figment.extract::<EvmOpts>()?;
196196
let mut config = Config::from_provider(figment)?.sanitized();
197197
let state_overrides = self.get_state_overrides()?;

0 commit comments

Comments
 (0)