foundry_compilers/compilers/vyper/
output.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::artifacts::vyper::{VyperCompilationError, VyperOutput};

impl From<VyperOutput> for super::CompilerOutput<VyperCompilationError> {
    fn from(output: VyperOutput) -> Self {
        Self {
            errors: output.errors,
            contracts: output
                .contracts
                .into_iter()
                .map(|(k, v)| (k, v.into_iter().map(|(k, v)| (k, v.into())).collect()))
                .collect(),
            sources: output.sources.into_iter().map(|(k, v)| (k, v.into())).collect(),
        }
    }
}