Skip to content

Commit d6e64b0

Browse files
committed
fix some stuff (i think)
1 parent bf58dda commit d6e64b0

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

bin/katana/src/cli/init/mod.rs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ use anyhow::Context;
6262
use clap::builder::NonEmptyStringValueParser;
6363
use clap::{Args, Subcommand};
6464
use deployment::DeploymentOutcome;
65-
use katana_chain_spec::rollup::{ChainConfigDir, FeeContract};
65+
use katana_chain_spec::rollup::ChainConfigDir;
66+
use katana_chain_spec::FeeContracts;
6667
use katana_chain_spec::{rollup, SettlementLayer};
6768
use katana_genesis::allocation::DevAllocationsGenerator;
6869
use katana_genesis::constant::DEFAULT_PREFUNDED_ACCOUNT_BALANCE;
@@ -246,8 +247,9 @@ impl RollupArgs {
246247
slot::add_paymasters_to_genesis(&mut genesis, &output.slot_paymasters.unwrap_or_default());
247248

248249
// At the moment, the fee token is limited to a predefined token.
249-
let fee_contract = FeeContract::default();
250-
let chain_spec = rollup::ChainSpec { id, genesis, settlement, fee_contract };
250+
let fee_contracts = FeeContracts::default();
251+
let versioned_constants_overrides = None;
252+
let chain_spec = rollup::ChainSpec { id, genesis, settlement, fee_contracts, versioned_constants_overrides };
251253

252254
if let Some(path) = self.output_path {
253255
let dir = ChainConfigDir::create(path)?;
@@ -384,8 +386,9 @@ impl SovereignArgs {
384386
slot::add_paymasters_to_genesis(&mut genesis, &output.slot_paymasters.unwrap_or_default());
385387

386388
// At the moment, the fee token is limited to a predefined token.
387-
let fee_contract = FeeContract::default();
388-
let chain_spec = rollup::ChainSpec { id, genesis, settlement, fee_contract };
389+
let fee_contracts = FeeContracts::default();
390+
let versioned_constants_overrides = None;
391+
let chain_spec = rollup::ChainSpec { id, genesis, settlement, fee_contracts, versioned_constants_overrides };
389392

390393
if let Some(path) = self.output_path {
391394
let dir = ChainConfigDir::create(path)?;

0 commit comments

Comments
 (0)