File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
aggregation_mode/sdk/src/gateway Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -69,10 +69,7 @@ impl<S: Signer> AggregationModeGatewayProvider<S> {
6969 address : String ,
7070 nonce : Option < u64 > ,
7171 ) -> Result < GatewayResponse < ReceiptsResponse > , GatewayError > {
72- let query = ReceiptsQueryParams {
73- address : address,
74- nonce,
75- } ;
72+ let query = ReceiptsQueryParams { address, nonce } ;
7673
7774 let request = self
7875 . http_client
@@ -101,7 +98,7 @@ impl<S: Signer> AggregationModeGatewayProvider<S> {
10198 SubmitSP1ProofMessage :: new ( nonce_response. data . nonce , serialized_proof, serialized_vk)
10299 . sign ( signer, & self . network )
103100 . await
104- . map_err ( |e| GatewayError :: MessageSignature ( e ) ) ?;
101+ . map_err ( GatewayError :: MessageSignature ) ?;
105102
106103 let form = multipart:: Form :: new ( )
107104 . text ( "nonce" , message. nonce . to_string ( ) )
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ impl SubmitSP1ProofMessage {
7171
7272 let nonce_bytes: [ u8 ; 32 ] = U256 :: from_be_slice ( & self . nonce . to_be_bytes ( ) ) . to_be_bytes ( ) ;
7373
74- hasher. update ( & nonce_bytes) ;
74+ hasher. update ( nonce_bytes) ;
7575 hasher. update ( & self . proof ) ;
7676 hasher. update ( & self . program_vk ) ;
7777 hasher. finalize_into_array ( & mut output) ;
You can’t perform that action at this time.
0 commit comments