File tree 1 file changed +2
-2
lines changed
cmd/soroban-cli/src/commands/tx
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ where
155
155
{
156
156
let version = env ! ( "CARGO_PKG_VERSION" ) ;
157
157
let tx = T :: from_xdr_base64 ( xdr_string, curr:: Limits :: none ( ) ) ?;
158
- let mut schema: serde_json:: Value = serde_json:: to_value ( tx) . unwrap ( ) ;
158
+ let mut schema: serde_json:: Value = serde_json:: to_value ( tx) ? ;
159
159
schema[ "$schema" ] = json ! ( format!(
160
160
"https://github.com/stellar/stellar-cli/releases/download/v{version}/stellar-xdr-{version}.json"
161
161
) ) ;
@@ -168,7 +168,7 @@ fn json_to_xdr<T>(json_string: &str) -> Result<String, Error>
168
168
where
169
169
T : serde:: de:: DeserializeOwned + curr:: WriteXdr ,
170
170
{
171
- let mut schema: serde_json:: Value = serde_json:: from_str ( json_string) . unwrap ( ) ;
171
+ let mut schema: serde_json:: Value = serde_json:: from_str ( json_string) ? ;
172
172
173
173
if let Some ( obj) = schema. as_object_mut ( ) {
174
174
obj. remove ( "$schema" ) ;
You can’t perform that action at this time.
0 commit comments