File tree Expand file tree Collapse file tree
sdk-libs/sdk-types/src/interface/program/decompression
sdk-tests/sdk-token-test/tests Expand file tree Collapse file tree Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ use std::{
66
77use tokio:: time:: sleep;
88use tracing:: info;
9- use tokio:: time:: sleep;
109
1110use crate :: {
1211 constants:: { HEALTH_CHECK , SERVER_ADDRESS } ,
Original file line number Diff line number Diff 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 } ,
Original file line number Diff line number Diff 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" ]
You can’t perform that action at this time.
0 commit comments