Various minor tweaks all-around (#194)

* Fix exports for provider

* Cleanu jsonrpc method exposure

* name -> section
This commit is contained in:
Jaco Greeff
2018-10-03 20:31:23 +02:00
committed by GitHub
parent 01b10aa520
commit 6ff847170d
7 changed files with 55 additions and 68 deletions
+2 -2
View File
@@ -63,11 +63,11 @@ export default class Api implements ApiInterface {
return `${method} (${inputs}): ${type}`;
}
private createInterface ({ methods, name }: Section<any>): ApiInterface$Section {
private createInterface ({ methods, section }: Section): ApiInterface$Section {
return Object
.keys(methods)
.reduce((exposed, method) => {
const rpcName = `${name}_${method}`;
const rpcName = `${section}_${method}`;
const def = methods[method];
exposed[method] = def.isSubscription