Fix bug on rust client with void responses
This commit is contained in:
parent
132390fa35
commit
f401d58f07
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hibas123/jrpcgen",
|
||||
"version": "1.2.13",
|
||||
"version": "1.2.14",
|
||||
"main": "lib/index.js",
|
||||
"license": "MIT",
|
||||
"packageManager": "yarn@3.1.1",
|
||||
|
@ -79,7 +79,8 @@ impl JRPCClient {
|
||||
} else if let Some(result) = result.result {
|
||||
return Ok(result);
|
||||
} else {
|
||||
return Err(format!("No result received").into());
|
||||
return Ok(Value::Null);
|
||||
// return Err(format!("No result received").into());
|
||||
}
|
||||
} else {
|
||||
return Err("Error while receiving result".into());
|
||||
|
Loading…
Reference in New Issue
Block a user