diff --git a/wasm/solana-client/src/provider.rs b/wasm/solana-client/src/provider.rs index d62e6243..3500e52e 100644 --- a/wasm/solana-client/src/provider.rs +++ b/wasm/solana-client/src/provider.rs @@ -37,10 +37,10 @@ impl HttpProvider { match serde_json::from_value::(request_result.clone()) { Ok(response) => Ok(response), Err(err) => { - if let Ok(err) = serde_json::from_value::(request_result) { + if let Ok(err) = serde_json::from_value::(request_result.clone()) { Err(err) } else { - Err(ClientError::new(&err.to_string())) + Err(ClientError::new(&request_result.to_string())) } } }