feat: Add encoding to test suite (#259)
* feat: Add encoding to test suite Use execution from simulation Add protocol_system to all test files and pass it to run tycho Add encoding_utils.rs #time 5h 0m #time 1m #time 7m * refactor: Move encoding swap to its own method to simplify main code Rename encoding_utils.rs to encoding.rs #time 20m #time 0m #time 0m
This commit is contained in:
@@ -15,14 +15,12 @@ use tycho_common::{
|
||||
#[derive(Debug)]
|
||||
pub enum RpcError {
|
||||
ClientError(String),
|
||||
ResponseError(String),
|
||||
}
|
||||
|
||||
impl fmt::Display for RpcError {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
match self {
|
||||
RpcError::ClientError(msg) => write!(f, "RPC client error: {msg}"),
|
||||
RpcError::ResponseError(msg) => write!(f, "RPC response error: {msg}"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user