Introduce instances, apply to balance derives (multi-result) (#3094)

* Introducce instances, apply to balance derives (multi-result)

* Nonce extraction

* Optimize
This commit is contained in:
Jaco Greeff
2021-01-22 22:24:10 +01:00
committed by GitHub
parent c9deb0d88f
commit 1f55f38bd2
7 changed files with 80 additions and 39 deletions
+1 -1
View File
@@ -297,7 +297,7 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
this._rx.extrinsicType = this._extrinsicType;
this._rx.genesisHash = this._genesisHash;
this._rx.runtimeVersion = this._runtimeVersion;
this._rx.runtimeVersion = this._runtimeVersion as RuntimeVersion; // must be set here
// inject metadata and adjust the types as detected
this.injectMetadata(metadata, true);
+1 -1
View File
@@ -81,7 +81,7 @@ export interface ApiInterfaceRx {
hasSubscriptions: boolean;
registry: Registry;
runtimeMetadata: Metadata;
runtimeVersion?: RuntimeVersion;
runtimeVersion: RuntimeVersion;
query: QueryableStorage<'rxjs'>;
queryMulti: QueryableStorageMulti<'rxjs'>;
rpc: DecoratedRpc<'rxjs', RpcInterface>;