foundry_common/errors/artifacts.rs
1//! Errors that can occur when working with `solc` artifacts
2
3/// Error when encountering unlinked code
4#[derive(Clone, Debug, thiserror::Error)]
5pub enum UnlinkedByteCode {
6 /// `bytecode` is unlinked
7 #[error("Contract `{0}` has unlinked bytecode. Please check all libraries settings.")]
8 Bytecode(String),
9 /// `deployedBytecode` is unlinked
10 #[error("Contract `{0}` has unlinked deployed Bytecode. Please check all libraries settings.")]
11 DeployedBytecode(String),
12}