Skip to content

Commit

Permalink
fix(scroll): l1 slots proofs expects packed values (#1857)
Browse files Browse the repository at this point in the history
fixes #1856
  • Loading branch information
hussein-aitlahcen authored May 1, 2024
2 parents 66c2952 + 42b1a9f commit e9a977f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/scroll-verifier/src/verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub fn verify_header(
client_state.rollup_finalized_state_roots_slot,
header.last_batch_index.into(),
),
&rlp::encode(&header.l2_state_root),
&rlp::encode(&U256::from_be_bytes(header.l2_state_root.into())),
&header.l2_state_proof.proofs[0].proof,
)
.map_err(Error::InvalidRollupProof)?;
Expand All @@ -76,7 +76,7 @@ pub fn verify_header(
client_state.rollup_committed_batches_slot,
header.last_batch_index.into(),
),
&rlp::encode(&batch_hash),
&rlp::encode(&U256::from_be_bytes(batch_hash.into())),
&header.batch_hash_proof.proofs[0].proof,
)
.map_err(Error::InvalidRollupProof)?;
Expand Down

0 comments on commit e9a977f

Please sign in to comment.