-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
solidity: update to version 0.8.28 (#27727)
- Loading branch information
1 parent
fa0a335
commit 92a5489
Showing
8 changed files
with
83 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- CMakeLists.txt.orig 2024-09-04 09:02:02 UTC | ||
+++ CMakeLists.txt | ||
@@ -52,15 +52,21 @@ mark_as_advanced(ONLY_BUILD_SOLIDITY_LIBRARIES) | ||
mark_as_advanced(IGNORE_VENDORED_DEPENDENCIES) | ||
mark_as_advanced(ONLY_BUILD_SOLIDITY_LIBRARIES) | ||
|
||
-# Setup cccache. | ||
-include(EthCcache) | ||
- | ||
# Let's find our dependencies | ||
include(EthDependencies) | ||
if (NOT IGNORE_VENDORED_DEPENDENCIES) | ||
include(fmtlib) | ||
include(nlohmann-json) | ||
include(range-v3) | ||
+else() | ||
+ # fmtlib | ||
+ find_package(fmt REQUIRED) | ||
+ # nlohmann-json | ||
+ find_package(nlohmann_json REQUIRED) | ||
+ # range-v3 | ||
+ add_library(range-v3 INTERFACE IMPORTED) | ||
+ set_target_properties(range-v3 PROPERTIES | ||
+ INTERFACE_INCLUDE_DIRECTORIES ${RANGE_V3_INCLUDE_DIR}) | ||
endif() | ||
|
||
find_package(Threads) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- libyul/ObjectOptimizer.cpp.orig 2025-02-18 15:37:12 | ||
+++ libyul/ObjectOptimizer.cpp 2025-02-18 15:38:24 | ||
@@ -153,7 +153,7 @@ | ||
// we just regenerate them by reparsing the object. | ||
rawKey += keccak256(asmPrinter(_ast)).asBytes(); | ||
rawKey += keccak256(_debugData.formatUseSrcComment()).asBytes(); | ||
- rawKey += h256(u256(_settings.language)).asBytes(); | ||
+ rawKey += h256(u256(static_cast<uint8_t>(_settings.language))).asBytes(); | ||
rawKey += FixedHash<1>(uint8_t(_settings.optimizeStackAllocation ? 0 : 1)).asBytes(); | ||
rawKey += h256(u256(_settings.expectedExecutionsPerDeployment)).asBytes(); | ||
rawKey += FixedHash<1>(uint8_t(_isCreation ? 0 : 1)).asBytes(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity >=0.4.16 <0.9.0; | ||
|
||
contract SimpleStorage { | ||
uint storedData; | ||
|
||
function set(uint x) public { | ||
storedData = x; | ||
} | ||
|
||
function get() public view returns (uint) { | ||
return storedData; | ||
} | ||
} |