Skip to content

Commit

Permalink
Merge pull request #613 from sbillig/solc-0.8.7
Browse files Browse the repository at this point in the history
Update solc to 0.8.7
  • Loading branch information
g-r-a-n-t authored Dec 17, 2021
2 parents 2e25589 + beedc64 commit a07d9a9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 115 deletions.
114 changes: 2 additions & 112 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/test-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ test-files = {path = "../test-files", package = "fe-test-files" }
hex = "0.4"
primitive-types = {version = "0.9", default-features = false, features = ["rlp"]}
serde_json = "1.0.64"
solc = {git = "https://github.com/g-r-a-n-t/solc-rust", rev = "fcb9105", optional = true}
solc = {git = "https://github.com/g-r-a-n-t/solc-rust", rev = "da554b3", optional = true}
yultsur = {git = "https://github.com/g-r-a-n-t/yultsur", rev = "ae85470"}

# used by ethabi, we need to force the js feature for wasm support
Expand Down
2 changes: 1 addition & 1 deletion crates/yulc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repository = "https://github.com/ethereum/fe"
[dependencies]
fe-yulgen = {path = "../yulgen", version = "^0.11.0-alpha"}
# This fork supports concurrent compilation, which is required for Rust tests.
solc = { git = "https://github.com/g-r-a-n-t/solc-rust", rev = "fcb9105", optional = true}
solc = { git = "https://github.com/g-r-a-n-t/solc-rust", rev = "da554b3", optional = true}
serde_json = "1.0"
indexmap = "1.6.2"

Expand Down
4 changes: 3 additions & 1 deletion crates/yulc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,7 @@ fn test_solc_sanity() {
.to_string()
.replace("\"", "");

assert_eq!(bytecode, "6000600055", "incorrect bytecode",);
// solc 0.8.4: push1 0; push1 0; sstore "6000600055"
// solc 0.8.7: push1 0; dup1; sstore "60008055"
assert_eq!(bytecode, "60008055", "incorrect bytecode",);
}

0 comments on commit a07d9a9

Please sign in to comment.