(name: S)
| 224 | |
| 225 | impl Submodule { |
| 226 | pub fn new<S: ToString>(name: S) -> Self { |
| 227 | Self { |
| 228 | name: name.to_string(), |
| 229 | contracts: vec![], |
| 230 | } |
| 231 | } |
| 232 | |
| 233 | pub fn add_contract(mut self, contract: Contract) -> Self { |
| 234 | self.contracts.push(contract); |