MCPcopy Create free account
hub / github.com/consensus-shipyard/ipc / env

Method env

fendermint/testing/materializer/src/docker/runner.rs:83–93  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

81 }
82
83 fn env(&self) -> Vec<String> {
84 // Set the network otherwise we might be be able to parse addresses we created.
85 let network = current_network();
86 let mut env = vec![
87 format!("FM_NETWORK={}", network),
88 format!("IPC_NETWORK={}", network),
89 format!("NETWORK={}", network),
90 ];
91 env.extend(self.env.iter().map(|(k, v)| format!("{k}={v}")));
92 env
93 }
94
95 /// Run a short lived container.
96 pub async fn run_cmd(&self, cmd: &str) -> anyhow::Result<Vec<String>> {

Callers 3

run_cmdMethod · 0.80
createMethod · 0.80
build_all_wasm_blobsFunction · 0.80

Calls 2

current_networkFunction · 0.85
iterMethod · 0.45

Tested by

no test coverage detected