MCPcopy Create free account
hub / github.com/base/base / resolves_dev_builtin

Function resolves_dev_builtin

bin/base/src/config.rs:263–275  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

261 #[test]
262 #[allow(clippy::result_large_err)]
263 fn resolves_dev_builtin() {
264 with_cleared_env(|_| {
265 let resolved =
266 ChainResolver::new(Some(ChainArg::BuiltIn("dev".to_owned()))).resolve().unwrap();
267
268 assert_eq!(resolved.name, "dev");
269 assert_eq!(resolved.l2_chain_id, 84538453);
270 assert_eq!(resolved.l1_chain_id, 1337);
271 assert_eq!(resolved.source, ResolvedChainSource::BuiltIn("dev".to_owned()));
272
273 Ok(())
274 });
275 }
276
277 #[test]
278 fn from_str_normalizes_legacy_names_to_selectors() {

Callers

nothing calls this directly

Calls 3

with_cleared_envFunction · 0.85
newFunction · 0.50
resolveMethod · 0.45

Tested by

no test coverage detected