Skip to content

Commit

Permalink
clippy and cargo test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MaanavKhaitan committed Oct 15, 2024
1 parent 957e8a0 commit 8085caf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion programs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@ mod tests {
fn executes_square_root() {
// Input for program
let number = U256::from(9);
let onchain_input = number.abi_encode();
let onchain_input_len = onchain_input.len() as u32;

// Execute program on input, without generating a ZK proof
let env = ExecutorEnv::builder()
.session_limit(Some(MAX_CYCLES))
.write_slice(&number.abi_encode())
.write(&onchain_input_len)?
.write_slice(&onchain_input)
.build()
.unwrap();
let executor = LocalProver::new("locals only");
Expand Down
3 changes: 2 additions & 1 deletion zkvm-utils/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ async fn execute_onchain_job_ffi(
Ok(())
}

#[allow(clippy::too_many_arguments)]
/// Prints on stdio the Ethereum ABI and hex encoded request and result
/// for an offchain job.
async fn execute_offchain_job_ffi(
Expand Down Expand Up @@ -274,7 +275,7 @@ pub type ResultWithMetadata = sol! {
/// executed an offchain job. Also the result payload the job manager contract expects.
///
/// tuple(JobID,OnchainInputHash,OffchainInputHash,OffchainStateHash,MaxCycles,VerifyingKey,
/// RawOutput)
/// `RawOutput`)
pub type OffChainResultWithMetadata = sol! {
tuple(bytes32,bytes32,bytes32,bytes32,uint64,bytes32,bytes)
};
Expand Down

0 comments on commit 8085caf

Please sign in to comment.