integration: bugfix blob cache (#192)

Signed-off-by: xermicus <cyrill@parity.io>
This commit is contained in:
xermicus
2025-02-04 12:11:25 +01:00
committed by GitHub
parent 4ef495beea
commit ba7310fdff
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -11,6 +11,7 @@ This is a development pre-release.
- Missing the `--overwrite` flag emits an error instead of a warning.
- The `resolc` executable prints the help by default.
- Removed support for legacy EVM assembly (EVMLA) translation.
- integration: identify cached code blobs on source code to fix potential confusions.
### Fixed
- Solidity: Add the solc `--libraries` files to sources.
+3
View File
@@ -29,6 +29,7 @@ const DEBUG_CONFIG: revive_llvm_context::DebugConfig =
#[derive(Hash, PartialEq, Eq)]
struct CachedBlob {
contract_name: String,
solidity: String,
solc_optimizer_enabled: bool,
}
@@ -280,6 +281,7 @@ fn compile_evm(
) -> Vec<u8> {
let id = CachedBlob {
contract_name: contract_name.to_owned(),
solidity: source_code.to_owned(),
solc_optimizer_enabled,
};
@@ -323,6 +325,7 @@ pub fn compile_blob_with_options(
) -> Vec<u8> {
let id = CachedBlob {
contract_name: contract_name.to_owned(),
solidity: source_code.to_owned(),
solc_optimizer_enabled,
};