decorated.hash: getStorageSize -> getStorageHash (#671)

This commit is contained in:
Jaco Greeff
2019-02-11 11:36:51 +01:00
committed by Amaury Martiny
parent 1502298659
commit d16671c469
+1 -1
View File
@@ -496,7 +496,7 @@ export default abstract class ApiBase<CodecResult, SubscriptionResult> implement
// be converted from C to the actual result required
decorated.hash = (arg?: CodecArg): HashResult<C, S> =>
onCall(
(arg: CodecArg) => this._rpcRx.state.getStorageSize([method, arg]),
(arg: CodecArg) => this._rpcRx.state.getStorageHash([method, arg]),
[arg]
) as unknown as HashResult<C, S>;