Skip to content

Commit

Permalink
Rename out to output
Browse files Browse the repository at this point in the history
  • Loading branch information
jtraglia committed Mar 28, 2024
1 parent 635e1c3 commit 8b599c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/precompile/src/bn128.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,12 @@ pub fn run_mul(input: &[u8]) -> Result<Bytes, Error> {
// `Fr::from_slice` can only fail when the length is not 32.
let fr = bn::Fr::from_slice(&input[64..96]).unwrap();

let mut out = [0u8; 64];
let mut output = [0u8; 64];
if let Some(mul) = AffineG1::from_jacobian(p * fr) {
mul.x().to_big_endian(&mut out[..32]).unwrap();
mul.y().to_big_endian(&mut out[32..]).unwrap();
mul.x().to_big_endian(&mut output[..32]).unwrap();
mul.y().to_big_endian(&mut output[32..]).unwrap();
}
Ok(out.into())
Ok(output.into())
}

pub fn run_pair(
Expand Down

0 comments on commit 8b599c7

Please sign in to comment.