Skip to content

Commit 4916343

Browse files
committed
log len
1 parent acdb8bb commit 4916343

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/core/src/instruction.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ impl InstructionMetadata {
8282
pub fn decode_log_events<T: CarbonDeserialize>(&self) -> Vec<T> {
8383
self.extract_event_log_data()
8484
.into_iter()
85+
.filter(|log| log.len() >= 8)
8586
.filter_map(|log| <T as CarbonDeserialize>::deserialize(&log[8..]))
8687
.collect()
8788
}

0 commit comments

Comments
 (0)