Skip to content

Commit

Permalink
feat: bump ethers (#5086)
Browse files Browse the repository at this point in the history
* chore(packages): bump ethers

* chore: add breaking solc changes

* chore: override evm version and set default to paris

* chore: remove old comment

* chore: pin all but shanghai compat tests to use 0.8.18
  • Loading branch information
Evalir committed Jun 1, 2023
1 parent 9a179d7 commit 033bdc2
Show file tree
Hide file tree
Showing 114 changed files with 416 additions and 361 deletions.
528 changes: 291 additions & 237 deletions Cargo.lock

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,16 @@ panic = "abort"
codegen-units = 1

[workspace.dependencies]
ethers = { version = "2.0.4", default-features = false }
ethers-addressbook = { version = "2.0.4", default-features = false }
ethers-core = { version = "2.0.4", default-features = false }
ethers-contract = { version = "2.0.4", default-features = false }
ethers-contract-abigen = { version = "2.0.4", default-features = false }
ethers-providers = { version = "2.0.4", default-features = false }
ethers-signers = { version = "2.0.4", default-features = false }
ethers-middleware = { version = "2.0.4", default-features = false }
ethers-etherscan = { version = "2.0.4", default-features = false }
ethers-solc = { version = "2.0.4", default-features = false }
ethers = { version = "2.0.6", default-features = false }
ethers-addressbook = { version = "2.0.6", default-features = false }
ethers-core = { version = "2.0.6", default-features = false }
ethers-contract = { version = "2.0.6", default-features = false }
ethers-contract-abigen = { version = "2.0.6", default-features = false }
ethers-providers = { version = "2.0.6", default-features = false }
ethers-signers = { version = "2.0.6", default-features = false }
ethers-middleware = { version = "2.0.6", default-features = false }
ethers-etherscan = { version = "2.0.6", default-features = false }
ethers-solc = { version = "2.0.6", default-features = false }

[patch.crates-io]
# ethers = { path = "../ethers-rs/ethers" }
Expand Down
3 changes: 0 additions & 3 deletions chisel/src/session_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,6 @@ impl SessionSourceConfig {
// or leave it as-is if we don't need a post merge solc version or the version we
// have is good enough.
let v = if needs_post_merge_solc && version < Version::new(0, 8, 18) {
// If we do need a new version, install 0.8.19 (Paris)
// NOTE: This needs to be bumped to 0.8.20 once we upgrade all tooling to
// Shanghai.
eyre::bail!("solc {version} is not supported by the set evm version: {evm_version}. Please install and use a version of solc higher or equal to 0.8.18.
You can also set the solc version in your foundry.toml.")
} else {
Expand Down
6 changes: 5 additions & 1 deletion config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1723,7 +1723,7 @@ impl Default for Config {
allow_paths: vec![],
include_paths: vec![],
force: false,
evm_version: Default::default(),
evm_version: EvmVersion::Paris,
gas_reports: vec!["*".to_string()],
gas_reports_ignore: vec![],
solc: None,
Expand Down Expand Up @@ -3970,6 +3970,8 @@ mod tests {
show_unproved: None,
div_mod_with_slacks: None,
solvers: None,
show_unsupported: None,
show_proved_safe: None,
})
);

Expand Down Expand Up @@ -4030,6 +4032,8 @@ mod tests {
show_unproved: None,
div_mod_with_slacks: None,
solvers: None,
show_unsupported: None,
show_proved_safe: None,
})
);

Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Addr.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Assume.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Bank.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/ChainId.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Deal.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Derive.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Env.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Etch.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/ExpectCall.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/ExpectEmit.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/ExpectRevert.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Fee.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Ffi.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Fork.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Fork2.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Fs.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/GasMetering.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/GetCode.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/GetDeployedCode.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/GetNonce.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Json.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Label.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Load.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/MemSafety.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/MockCall.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Parse.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Prank.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Prevrandao.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/ProjectRoot.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Record.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/RecordLogs.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Remember.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Roll.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/RpcUrls.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/SetNonce.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/SetNonceUnsafe.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Setup.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Sign.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Snapshots.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Store.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/ToString.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Travel.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/cheats/Warp.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";
import "./Cheats.sol";
Expand Down
2 changes: 1 addition & 1 deletion testdata/core/Abstract.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

contract TestFixture {
function something() public pure returns (string memory) {
Expand Down
2 changes: 1 addition & 1 deletion testdata/core/ContractEnvironment.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";

Expand Down
2 changes: 1 addition & 1 deletion testdata/core/DSStyle.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";

Expand Down
2 changes: 1 addition & 1 deletion testdata/core/FailingSetup.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";

Expand Down
2 changes: 1 addition & 1 deletion testdata/core/FailingTestAfterFailedSetup.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.18;
pragma solidity 0.8.18;

import "ds-test/test.sol";

Expand Down
Loading

0 comments on commit 033bdc2

Please sign in to comment.