File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -146,8 +146,8 @@ export abstract class Decorate<ApiType extends ApiTypes> extends Events {
146146
147147 this . #instanceId = `${ ++ instanceCounter } ` ;
148148 this . #registry = options . source ?. registry || options . registry || new TypeRegistry ( ) ;
149- this . _rx . queryAt = ( blockHash : Uint8Array | string ) =>
150- from ( this . at ( blockHash ) ) . pipe ( map ( ( a ) => a . rx . query ) ) ;
149+ this . _rx . queryAt = ( blockHash : Uint8Array | string , knownVersion ?: RuntimeVersion ) =>
150+ from ( this . at ( blockHash , knownVersion ) ) . pipe ( map ( ( a ) => a . rx . query ) ) ;
151151 this . _rx . registry = this . #registry;
152152
153153 const thisProvider = options . source
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ export interface ApiInterfaceRx {
9595 runtimeMetadata : Metadata ;
9696 runtimeVersion : RuntimeVersion ;
9797 query : QueryableStorage < 'rxjs' > ;
98- queryAt : ( blockHash : Uint8Array | string ) => Observable < QueryableStorage < 'rxjs' > > ;
98+ queryAt : ( blockHash : Uint8Array | string , knownVersion ?: RuntimeVersion ) => Observable < QueryableStorage < 'rxjs' > > ;
9999 queryMulti : QueryableStorageMulti < 'rxjs' > ;
100100 rpc : DecoratedRpc < 'rxjs' , RpcInterface > ;
101101 tx : SubmittableExtrinsics < 'rxjs' > ;
You can’t perform that action at this time.
0 commit comments