Skip to content

Commit c67e2de

Browse files
committed
fix
1 parent ae65f3a commit c67e2de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/l1block.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,9 +360,10 @@ mod tests {
360360
};
361361

362362
for tt in tests {
363+
let tx_size = 1e10 as u32; // dummy, but make sure this value is larger than the compressed size
363364
let spec = ScrollSpecId::GALILEO;
364365
let expected = U256::from_str(tt.expected).unwrap();
365-
let actual = gpo.calculate_tx_l1_cost_galileo(1e10 as u32, spec, tt.csize);
366+
let actual = gpo.calculate_tx_l1_cost_galileo(tx_size, spec, tt.csize);
366367
assert_eq!(expected, actual, "failed case: {}", tt.name);
367368
}
368369
}

0 commit comments

Comments
 (0)