mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-19 22:51:03 +00:00
error: RpcError with custom client error (#694)
* error: `RpcError` with custom client error Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * error: Add `SubscriptionDropped` and panic on param errors Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * Update subxt/src/rpc/rpc_client_t.rs Co-authored-by: James Wilson <james@jsdw.me> * Apply rustfmt Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> Co-authored-by: James Wilson <james@jsdw.me>
This commit is contained in:
@@ -107,7 +107,7 @@ where
|
||||
_ => continue,
|
||||
}
|
||||
}
|
||||
Err(RpcError("RPC subscription dropped".to_string()).into())
|
||||
Err(RpcError::SubscriptionDropped.into())
|
||||
}
|
||||
|
||||
/// Wait for the transaction to be finalized, and return a [`TxInBlock`]
|
||||
@@ -133,7 +133,7 @@ where
|
||||
_ => continue,
|
||||
}
|
||||
}
|
||||
Err(RpcError("RPC subscription dropped".to_string()).into())
|
||||
Err(RpcError::SubscriptionDropped.into())
|
||||
}
|
||||
|
||||
/// Wait for the transaction to be finalized, and for the transaction events to indicate
|
||||
|
||||
Reference in New Issue
Block a user