Revert params: null for jsonrpc (fixed in Node) (#116)

This commit is contained in:
Jaco Greeff
2018-07-23 17:12:55 +02:00
committed by GitHub
parent 4db511710f
commit baf5dd746b
2 changed files with 2 additions and 4 deletions
@@ -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
};
}
+1 -1
View File
@@ -9,7 +9,7 @@ export type JsonRpcObject = {
export type JsonRpcRequest = JsonRpcObject & {
method: string;
params: Array<any> | null;
params: Array<any>;
};
export type JsonRpcResponseBase$Error = {