Revert params: null for jsonrpc (fixed in Node) (#116)
This commit is contained in:
@@ -10,8 +10,6 @@ export default function encodeObject (self: RpcCoderState, method: string, param
|
||||
id: ++self.id,
|
||||
jsonrpc: '2.0',
|
||||
method,
|
||||
params: params && params.length
|
||||
? params
|
||||
: null
|
||||
params
|
||||
};
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -9,7 +9,7 @@ export type JsonRpcObject = {
|
||||
|
||||
export type JsonRpcRequest = JsonRpcObject & {
|
||||
method: string;
|
||||
params: Array<any> | null;
|
||||
params: Array<any>;
|
||||
};
|
||||
|
||||
export type JsonRpcResponseBase$Error = {
|
||||
|
||||
Reference in New Issue
Block a user