Add method name & prefix to StorageFunction (#182)

* Add methods & prefix to StorageFunction

* Match method/section to exposed names

* Export method/section on extrinsic & jsonrpc

* PR comment prefix -> section
This commit is contained in:
Jaco Greeff
2018-10-02 11:10:17 +02:00
committed by GitHub
parent 92d72d0007
commit 2f60ba0e1c
12 changed files with 38 additions and 26 deletions
+2 -2
View File
@@ -18,8 +18,8 @@ const SUBSCRIPTIONS: string[] = Array.prototype.concat.apply(
.filter((method) =>
method.isSubscription
)
.map(({ name, section }) =>
`${section}_${name}`
.map(({ method, section }) =>
`${section}_${method}`
)
)
);