Skip to content

Commit

Permalink
refactor(core): rename l1 inclusion block number field
Browse files Browse the repository at this point in the history
  • Loading branch information
petarvujovic98 committed Sep 2, 2024
1 parent 837df64 commit a05921c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/interfaces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ pub struct ProofRequest {
/// The block number for the block to generate a proof for.
pub block_number: u64,
/// The l1 block number of the l2 block be proposed.
pub l1_inclusive_block_number: u64,
pub l1_inclusion_block_number: u64,
/// The network to generate the proof for.
pub network: String,
/// The L1 network to generate the proof for.
Expand Down Expand Up @@ -278,7 +278,7 @@ pub struct ProofRequestOpt {
/// The block number for the l2 block to be proposed.
/// in hekla, it is the anchored l1 block height - 1
/// in ontake, it is the anchored l1 block height - (1..64)
pub l1_inclusive_block_number: Option<u64>,
pub l1_inclusion_block_number: Option<u64>,
#[arg(long, require_equals = true)]
/// The network to generate the proof for.
pub network: Option<String>,
Expand Down Expand Up @@ -359,7 +359,7 @@ impl TryFrom<ProofRequestOpt> for ProofRequest {
block_number: value.block_number.ok_or(RaikoError::InvalidRequestConfig(
"Missing block number".to_string(),
))?,
l1_inclusive_block_number: value.l1_inclusive_block_number.unwrap_or_default(),
l1_inclusion_block_number: value.l1_inclusion_block_number.unwrap_or_default(),
network: value.network.ok_or(RaikoError::InvalidRequestConfig(
"Missing network".to_string(),
))?,
Expand Down

0 comments on commit a05921c

Please sign in to comment.