Skip to content

Commit

Permalink
improve formating
Browse files Browse the repository at this point in the history
  • Loading branch information
jayz22 committed Sep 16, 2024
1 parent 82d7ad4 commit 3f00183
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions soroban-env-host/src/host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3114,14 +3114,14 @@ impl VmCallerEnv for Host {
vp1: VecObject,
vp2: VecObject,
) -> Result<Bool, HostError> {
let l1 = self.vec_len(vmcaller, vp1)?;
let l2 = self.vec_len(vmcaller, vp2)?;
if u32::from(l1) != u32::from(l2) || u32::from(l1) == 0 {
let l1: u32 = self.vec_len(vmcaller, vp1)?.into();
let l2: u32 = self.vec_len(vmcaller, vp2)?.into();
if l1 != l2 || l1 == 0 {
return Err(self.err(
ScErrorType::Crypto,
ScErrorCode::InvalidInput,
"multi-pairing-check: invalid input vector lengths",
&[l1.to_val(), l2.to_val()],
format!("multi-pairing-check: invalid input vector lengths {l1} and {l2}").as_str(),
&[],
));
}
let vp1 = self.g1_vec_from_vecobj(vp1)?;
Expand Down

0 comments on commit 3f00183

Please sign in to comment.