File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed 
packages/rs-drive-abci/src/query/proofs/v0 Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ use dpp::system_data_contracts::load_system_data_contract;
3636use  dpp:: version:: PlatformVersion ; 
3737use  dpp:: voting:: votes:: resource_vote:: accessors:: v0:: ResourceVoteGettersV0 ; 
3838use  dpp:: voting:: votes:: Vote ; 
39+ use  dpp:: ProtocolError ; 
3940use  drive:: drive:: Drive ; 
4041use  drive:: error:: proof:: ProofError ; 
4142use  drive:: query:: { 
@@ -60,8 +61,15 @@ impl<C> Platform<C> {
6061        platform_state :  & PlatformState , 
6162        platform_version :  & PlatformVersion , 
6263    )  -> Result < QueryValidationResult < GetProofsResponse > ,  Error >  { 
63-         let  state_transition:  StateTransition  =
64-             StateTransition :: deserialize_from_bytes ( & state_transition_bytes) ?; 
64+         let  state_transition =
65+             match  StateTransition :: deserialize_from_bytes ( & state_transition_bytes)  { 
66+                 Ok ( state_transition)  => state_transition, 
67+                 Err ( e)  => { 
68+                     return  Ok ( QueryValidationResult :: new_with_error ( QueryError :: Protocol ( 
69+                         e, 
70+                     ) ) ) 
71+                 } 
72+             } ; 
6573
6674        let  path_query = match  state_transition { 
6775            StateTransition :: DataContractCreate ( st)  => { 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments