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

Method build

crates/execution/chainspec/src/builder.rs:214–216  ·  view source on GitHub ↗

Build the resulting [`BaseChainSpec`]. # Panics This function panics if the chain ID and genesis is not set ([`Self::chain`] and [`Self::genesis`]), if `config.blockTime` is malformed, or if Beryl is scheduled without an activation registry admin address.

(self)

Source from the content-addressed store, hash-verified

212 /// [`Self::genesis`]), if `config.blockTime` is malformed, or if Beryl is scheduled without
213 /// an activation registry admin address.
214 pub fn build(self) -> BaseChainSpec {
215 self.try_build().expect("chain spec configuration must be valid")
216 }
217}

Calls 1

try_buildMethod · 0.45