diff --git a/apps/fortuna/src/command/setup_provider.rs b/apps/fortuna/src/command/setup_provider.rs index 2f77e4fa..8fc5729b 100644 --- a/apps/fortuna/src/command/setup_provider.rs +++ b/apps/fortuna/src/command/setup_provider.rs @@ -74,7 +74,7 @@ pub async fn setup_provider(opts: &SetupProviderOptions) -> Result<()> { &provider_address, &chain_config.contract_addr, &metadata.seed, - metadata.chain_length, + opts.randomness.chain_length, )?; let chain_state = HashChainState { offsets: vec![provider_info