JSONRPC request/response handler opts (#4722)

* JSONRPC request/response handler opts

* Fix test

* CHANGELOG
This commit is contained in:
Jaco
2022-04-08 08:51:44 +03:00
committed by GitHub
parent ae2422f350
commit ba188dcc0d
8 changed files with 59 additions and 60 deletions
@@ -13,6 +13,6 @@ describe('encodeJson', (): void => {
it('encodes a valid JsonRPC JSON string', (): void => {
expect(
coder.encodeJson('method', ['params'])
).toEqual('{"id":1,"jsonrpc":"2.0","method":"method","params":["params"]}');
).toEqual([1, '{"id":1,"jsonrpc":"2.0","method":"method","params":["params"]}']);
});
});