RPC: add err field to TransactionStatus, alongside the now deprecated status field (#9296) (#9303)

automerge
This commit is contained in:
mergify[bot]
2020-04-04 21:58:44 -07:00
committed by GitHub
parent 33c19130b5
commit 11b4da4146
12 changed files with 143 additions and 60 deletions

View File

@@ -116,10 +116,12 @@ impl GenericRpcClientRequest for MockRpcClientRequest {
let status = if self.url == "sig_not_found" {
None
} else {
let err = status.clone().err();
Some(TransactionStatus {
status,
slot: 1,
confirmations: Some(0),
err,
})
};
serde_json::to_value(Response {