Skip to content

Commit bd856c3

Browse files
cleanup
1 parent ffda165 commit bd856c3

4 files changed

Lines changed: 9 additions & 8 deletions

File tree

prover/client/src/proof_client.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ impl ProofClient {
7575
max_wait_time: Duration::from_secs(DEFAULT_MAX_WAIT_TIME_SECS),
7676
api_key: None,
7777
initial_poll_delay: Duration::from_millis(INITIAL_POLL_DELAY_SMALL_CIRCUIT_MS),
78-
})
78+
}
7979
}
8080

8181
#[allow(unused)]
@@ -91,7 +91,7 @@ impl ProofClient {
9191
Duration::from_millis(INITIAL_POLL_DELAY_SMALL_CIRCUIT_MS)
9292
};
9393

94-
Self {
94+
Ok(Self {
9595
client: build_http_client(),
9696
server_address,
9797
polling_interval,
@@ -116,7 +116,7 @@ impl ProofClient {
116116
max_wait_time,
117117
api_key,
118118
initial_poll_delay,
119-
})
119+
}
120120
}
121121

122122
pub async fn submit_proof_async(

prover/client/src/prover.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ use std::{
66

77
use tokio::time::sleep;
88
use tracing::info;
9-
use tokio::time::sleep;
109

1110
use crate::{
1211
constants::{HEALTH_CHECK, SERVER_ADDRESS},

sdk-libs/sdk-types/src/interface/program/decompression/pda.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ where
151151
lamports: 0,
152152
merkle_context: PackedMerkleContext {
153153
merkle_tree_pubkey_index: tree_info.merkle_tree_pubkey_index,
154-
queue_pubkey_index: input_queue_index,
154+
queue_pubkey_index: tree_info.queue_pubkey_index,
155155
leaf_index: tree_info.leaf_index,
156156
prove_by_index: tree_info.prove_by_index,
157157
},

sdk-tests/sdk-token-test/tests/test_4_invocations.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,11 @@ fn pack_selected_output_tree_index(
4747
.next_tree_info
4848
.map(|next| next.pack_output_tree_index(remaining_accounts))
4949
.unwrap_or_else(|| tree_info.pack_output_tree_index(remaining_accounts))
50-
.map_err(|error| Box::new(
51-
RpcError::CustomError(format!("Failed to pack output tree index: {error}"))
52-
))
50+
.map_err(|error| {
51+
Box::new(RpcError::CustomError(format!(
52+
"Failed to pack output tree index: {error}"
53+
)))
54+
})
5355
}
5456

5557
#[ignore = "fix cpi context usage"]

0 commit comments

Comments
 (0)