File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
crates/boundless-market/src/contracts Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -338,8 +338,8 @@ pub enum TxnErr {
338338 #[ error( "ProofMarket Err: {0:?}" ) ]
339339 ProofMarketErr ( IProofMarket :: IProofMarketErrors ) ,
340340
341- #[ error( "decoding err: missing data" ) ]
342- MissingData ,
341+ #[ error( "decoding err, missing data, code: {0} msg: {1} " ) ]
342+ MissingData ( i64 , String ) ,
343343
344344 #[ error( "decoding err: bytes decoding" ) ]
345345 BytesDecode ,
@@ -356,7 +356,7 @@ fn decode_contract_err<T: SolInterface>(err: ContractErr) -> Result<T, TxnErr> {
356356 match err {
357357 ContractErr :: TransportError ( TransportError :: ErrorResp ( ts_err) ) => {
358358 let Some ( data) = ts_err. data else {
359- return Err ( TxnErr :: MissingData ) ;
359+ return Err ( TxnErr :: MissingData ( ts_err . code , ts_err . message ) ) ;
360360 } ;
361361
362362 let data = data. get ( ) . trim_matches ( '"' ) ;
You can’t perform that action at this time.
0 commit comments