Skip to content

Commit 565d005

Browse files
author
Naohiro Yoshida
committed
fix s3
1 parent c751cb1 commit 565d005

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

derivation/src/oracle.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ fn verify_blob_preimage(
212212
})?
213213
}
214214
};
215-
// Ensure valida blob
215+
// Ensure valid blob
216216
let kzg_blob = kzg_rs::Blob::from_slice(&blob).map_err(Error::UnexpectedKZGBlob)?;
217217
let settings = kzg_rs::get_kzg_settings();
218218
let result = kzg_rs::kzg_proof::KzgProof::verify_blob_kzg_proof(

light-client/src/account.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::commitment::decode_eip1184_rlp_proof;
1+
use crate::commitment::decode_rlp_proof;
22
use crate::errors::Error;
33
use alloc::vec::Vec;
44
use alloy_primitives::hex;
@@ -16,7 +16,7 @@ impl TryFrom<ProtoAccountUpdate> for AccountUpdateInfo {
1616
type Error = Error;
1717
fn try_from(value: ProtoAccountUpdate) -> Result<Self, Self::Error> {
1818
Ok(Self {
19-
account_proof: decode_eip1184_rlp_proof(value.account_proof)?,
19+
account_proof: decode_rlp_proof(value.account_proof)?,
2020
account_storage_root: H256::from_slice(&value.account_storage_root),
2121
})
2222
}

light-client/src/client.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::client_state::ClientState;
2-
use crate::commitment::{calculate_ibc_commitment_storage_location, decode_eip1184_rlp_proof};
2+
use crate::commitment::{calculate_ibc_commitment_storage_location, decode_rlp_proof};
33
use crate::consensus_state::ConsensusState;
44
use crate::errors::Error;
55
use crate::header::Header;
@@ -238,7 +238,7 @@ impl<const L1_SYNC_COMMITTEE_SIZE: usize> OptimismLightClient<L1_SYNC_COMMITTEE_
238238
.map_err(Error::LCPError)?,
239239
)?;
240240
let root = consensus_state.storage_root;
241-
let proof = decode_eip1184_rlp_proof(proof)?;
241+
let proof = decode_rlp_proof(proof)?;
242242
if root.is_zero() {
243243
return Err(Error::UnexpectedStorageRoot(
244244
proof_height,

light-client/src/commitment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub fn calculate_ibc_commitment_storage_location(ibc_commitments_slot: &H256, pa
1717
}
1818

1919
/// decode rlp format `List<List>` to `Vec<List>`
20-
pub fn decode_eip1184_rlp_proof(proof: Vec<u8>) -> Result<Vec<Vec<u8>>, Error> {
20+
pub fn decode_rlp_proof(proof: Vec<u8>) -> Result<Vec<Vec<u8>>, Error> {
2121
let r = Rlp::new(&proof);
2222
if r.is_list() {
2323
Ok(r.into_iter()

light-client/src/l1.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ pub fn convert_proto_to_execution_update(
432432
}
433433
}
434434

435-
fn convert_proto_sync_aggregate<const SYNC_COMMITTEE_SIZE: usize>(
435+
fn convert_proto_to_sync_aggregate<const SYNC_COMMITTEE_SIZE: usize>(
436436
sync_aggregate: ProtoSyncAggregate,
437437
) -> Result<SyncAggregate<SYNC_COMMITTEE_SIZE>, Error> {
438438
Ok(SyncAggregate {
@@ -492,7 +492,7 @@ fn convert_proto_to_consensus_update<const SYNC_COMMITTEE_SIZE: usize>(
492492
finalized_header,
493493
decode_branch(consensus_update.finalized_header_branch),
494494
),
495-
sync_aggregate: convert_proto_sync_aggregate(
495+
sync_aggregate: convert_proto_to_sync_aggregate(
496496
consensus_update
497497
.sync_aggregate
498498
.ok_or(Error::proto_missing("sync_aggregate"))?,

0 commit comments

Comments
 (0)