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

Method with_fork

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

Add the given fork with the given activation condition to the spec.

(mut self, fork: H, condition: ForkCondition)

Source from the content-addressed store, hash-verified

44
45 /// Add the given fork with the given activation condition to the spec.
46 pub fn with_fork<H: Hardfork>(mut self, fork: H, condition: ForkCondition) -> Self {
47 self.inner = self.inner.with_fork(fork, condition);
48 self
49 }
50
51 /// Add the given forks with the given activation condition to the spec.
52 pub fn with_forks(mut self, forks: ChainHardforks) -> Self {

Calls

no outgoing calls