MCPcopy Create free account
hub / github.com/cowprotocol/services / new

Method new

contracts/src/codegen.rs:226–231  ·  view source on GitHub ↗
(name: S)

Source from the content-addressed store, hash-verified

224
225impl 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);

Callers

nothing calls this directly

Calls 1

newFunction · 0.50

Tested by

no test coverage detected