Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ratankaliani committed May 2, 2024
1 parent 0c6000b commit d8e94b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plonky2x/core/src/frontend/eth/mpt/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ mod tests {
);
let circuit = builder.mock_build();

let mut key_bytes = vec![];
let mut key_bytes = vec![0u8; 32];
key.to_big_endian(&mut key_bytes);

let key_bytes: [u8; 32] = key_bytes.try_into().unwrap();
Expand Down
2 changes: 1 addition & 1 deletion plonky2x/core/src/frontend/eth/mpt/reference.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ mod tests {
.map(|b| b.to_vec())
.collect::<Vec<Vec<u8>>>();

let mut key_bytes = vec![];
let mut key_bytes = vec![0u8; 32];
storage_result.storage_proof[0]
.key
.to_big_endian(&mut key_bytes);
Expand Down

0 comments on commit d8e94b5

Please sign in to comment.