Skip to content

Commit

Permalink
Add bytes pubdata with 0 value for the encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
jorbush committed Feb 15, 2024
1 parent 1334520 commit 183a0ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/lib/types/src/l1_batch_commit_data_generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ impl L1BatchCommitDataGenerator for RollupModeL1BatchCommitDataGenerator {

impl L1BatchCommitDataGenerator for ValidiumModeL1BatchCommitDataGenerator {
fn l1_commit_data(&self, l1_batch_with_metadata: &L1BatchWithMetadata) -> Token {
Token::Tuple(validium_mode_l1_commit_data(l1_batch_with_metadata))
let mut commit_data = validium_mode_l1_commit_data(l1_batch_with_metadata);
commit_data.push(Token::Bytes([0].to_vec()));
Token::Tuple(commit_data)
}
}

Expand Down

0 comments on commit 183a0ba

Please sign in to comment.