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
+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,
};