We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a581dd commit 7150467Copy full SHA for 7150467
1 file changed
crates/scroll/alloy/evm/src/tx/compression.rs
@@ -250,7 +250,13 @@ mod tests {
250
use alloy_primitives::{bytes, uint, U256};
251
252
#[test]
253
- fn test_compute_compression_ratio() -> eyre::Result<()> {
+ fn test_compression() -> eyre::Result<()> {
254
+ // Compute compression ratio and compressed size for each test case.
255
+ // These test cases are meant to be shared between the Go and Rust implementations.
256
+ // Note: Feynman's compression ratio is computed on the transaction payload,
257
+ // while Galileo's compressed size is computed on the full RLP-encoded transaction.
258
+ // In these compression tests we ignore this distinction.
259
+
260
// eth-transfer
261
let bytes = bytes!("0x");
262
let ratio = compute_compression_ratio(&bytes);
0 commit comments