diff --git a/crates/iota-genesis-builder/src/main.rs b/crates/iota-genesis-builder/src/main.rs index 403080b5ee7..e0adc0db630 100644 --- a/crates/iota-genesis-builder/src/main.rs +++ b/crates/iota-genesis-builder/src/main.rs @@ -46,7 +46,7 @@ enum Snapshot { long, help = "Path to the address swap map file. This must be a CSV file with two columns, where an entry contains in the first column an IotaAddress present in the Hornet full-snapshot and in the second column an IotaAddress that will be used for the swap." )] - address_swap_map_path: String, + address_swap_map_path: Option, #[clap(long, value_parser = clap::value_parser!(MigrationTargetNetwork), help = "Target network for migration")] target_network: MigrationTargetNetwork, }, @@ -84,7 +84,11 @@ fn main() -> Result<()> { CoinType::Iota => scale_amount_for_iota(snapshot_parser.total_supply()?)?, }; - let address_swap_map = AddressSwapMap::from_csv(&address_swap_map_path)?; + let address_swap_map = if let Some(address_swap_map_path) = address_swap_map_path { + AddressSwapMap::from_csv(&address_swap_map_path)? + } else { + AddressSwapMap::default() + }; // Prepare the migration using the parser output stream let migration = Migration::new( snapshot_parser.target_milestone_timestamp(),