parent
1e6b789bfa
commit
56667e17c9
|
@ -124,7 +124,8 @@ impl RpcClient {
|
||||||
5,
|
5,
|
||||||
)?;
|
)?;
|
||||||
let result: Response<Vec<Option<TransactionStatus>>> =
|
let result: Response<Vec<Option<TransactionStatus>>> =
|
||||||
serde_json::from_value(signature_status).unwrap();
|
serde_json::from_value(signature_status)
|
||||||
|
.map_err(|err| ClientError::new_with_command(err.into(), "GetSignatureStatus"))?;
|
||||||
Ok(result.value[0]
|
Ok(result.value[0]
|
||||||
.clone()
|
.clone()
|
||||||
.map(|status_meta| status_meta.status))
|
.map(|status_meta| status_meta.status))
|
||||||
|
@ -953,8 +954,8 @@ impl RpcClient {
|
||||||
1,
|
1,
|
||||||
)
|
)
|
||||||
.map_err(|err| err.into_with_command("GetSignatureStatus"))?;
|
.map_err(|err| err.into_with_command("GetSignatureStatus"))?;
|
||||||
let result: Response<Vec<Option<TransactionStatus>>> =
|
let result: Response<Vec<Option<TransactionStatus>>> = serde_json::from_value(response)
|
||||||
serde_json::from_value(response).unwrap();
|
.map_err(|err| ClientError::new_with_command(err.into(), "GetSignatureStatus"))?;
|
||||||
|
|
||||||
let confirmations = result.value[0]
|
let confirmations = result.value[0]
|
||||||
.clone()
|
.clone()
|
||||||
|
|
Loading…
Reference in New Issue