mirror of
https://github.com/pezkuwichain/revive-differential-tests.git
synced 2026-06-12 22:51:10 +00:00
Added bail to stop execution when we have an error during deployment
This commit is contained in:
@@ -300,20 +300,25 @@ where
|
|||||||
.insert(contract_name.clone(), parsed_abi);
|
.insert(contract_name.clone(), parsed_abi);
|
||||||
}
|
}
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
log::debug!(
|
anyhow::bail!(
|
||||||
"Failed to parse ABI from metadata for {contract_name}: {err}"
|
"Failed to parse ABI from metadata for contract {}: {}",
|
||||||
|
contract_name,
|
||||||
|
err
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
log::debug!(
|
anyhow::bail!(
|
||||||
"No ABI found in metadata for contract {contract_name}"
|
"No ABI found in metadata for contract {}",
|
||||||
|
contract_name
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
log::debug!(
|
anyhow::bail!(
|
||||||
"Failed to parse metadata JSON string for contract {contract_name}: {err}"
|
"Failed to parse metadata JSON string for contract {}: {}",
|
||||||
|
contract_name,
|
||||||
|
err
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,7 +54,8 @@ pub enum Calldata {
|
|||||||
#[serde(untagged)]
|
#[serde(untagged)]
|
||||||
pub enum CalldataArg {
|
pub enum CalldataArg {
|
||||||
Literal(String),
|
Literal(String),
|
||||||
AddressRef(String), // will be "Contract.address"
|
/// For example: `Contract.address`
|
||||||
|
AddressRef(String),
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Specify how the contract is called.
|
/// Specify how the contract is called.
|
||||||
|
|||||||
Reference in New Issue
Block a user