Skip to content

Commit 0044460

Browse files
committed
eth: add rpc error return
1 parent 5598fed commit 0044460

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/eth.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ pub enum EthResponse {
7272

7373
#[derive(Debug, Serialize, Deserialize, PartialEq)]
7474
pub enum EthError {
75+
/// RPC provider returned an error
76+
RpcError(String),
7577
/// provider module cannot parse message
7678
MalformedRequest,
7779
/// No RPC provider for the chain

0 commit comments

Comments
 (0)