mirror of
https://github.com/pezkuwichain/revive-differential-tests.git
synced 2026-06-17 05:21:06 +00:00
Skip contracts that have no bytecode (e.g., abstract contracts)
This commit is contained in:
Generated
+1056
-1072
File diff suppressed because it is too large
Load Diff
@@ -253,10 +253,16 @@ impl SolidityCompiler for Resolc {
|
|||||||
|
|
||||||
let map = compiler_output.contracts.entry(source_path).or_default();
|
let map = compiler_output.contracts.entry(source_path).or_default();
|
||||||
for (contract_name, contract_information) in contracts.into_iter() {
|
for (contract_name, contract_information) in contracts.into_iter() {
|
||||||
let bytecode = contract_information
|
let Some(bytecode) = contract_information
|
||||||
.evm
|
.evm
|
||||||
.and_then(|evm| evm.bytecode.clone())
|
.and_then(|evm| evm.bytecode.clone())
|
||||||
.context("Unexpected - Contract compiled with resolc has no bytecode")?;
|
else {
|
||||||
|
tracing::debug!(
|
||||||
|
"Skipping abstract or interface contract {} - no bytecode",
|
||||||
|
contract_name
|
||||||
|
);
|
||||||
|
continue;
|
||||||
|
};
|
||||||
let abi = {
|
let abi = {
|
||||||
let metadata = contract_information
|
let metadata = contract_information
|
||||||
.metadata
|
.metadata
|
||||||
|
|||||||
Reference in New Issue
Block a user