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

Method build

crates/execution/chainspec/src/builder.rs:188–190  ·  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`]), or if Beryl is scheduled without an activation registry admin address.

(self)

Source from the content-addressed store, hash-verified

186 /// This function panics if the chain ID and genesis is not set ([`Self::chain`] and
187 /// [`Self::genesis`]), or if Beryl is scheduled without an activation registry admin address.
188 pub fn build(self) -> BaseChainSpec {
189 self.try_build().expect("Beryl-enabled chain spec requires activation admin")
190 }
191}

Calls 1

try_buildMethod · 0.45