On subscriptions, ensure rx.runtimeVersion is set (#2180)

This commit is contained in:
Jaco Greeff
2020-04-16 12:05:35 +02:00
committed by GitHub
parent 52d73d8698
commit 07c4037fcf
2 changed files with 10 additions and 1 deletions
+9 -1
View File
@@ -1,7 +1,15 @@
# 1.11.0-beta.x
- Align augmented generation with camelCase (Thanks to https://github.com/monitz87)
- Fix bitfield endian encoding (Thanks to investigation by https://github.com/xlc)
- Fix entries decoding for `Option<Number>` (& simplify, decoding correctly on rpc layer)
- Ensure proper propagation of `api.runtimeVersion` (used for signing) after upgrade
- `derive.account.info` now returns all field types (not only raw)
- `Digest` has been moved to definitions, removal of `GenericDigest` type
- Fix entries decoding for `Option<Number>`
- Support `Fixed128` type
- Add `transactionVersion` to `RuntimeVersion` struct
- Enhance API support for non-subscription providers (skip subscription to runtimeVersion)
- Adjust types for Kusama 1057 (notably the new `StakingLedger`)
# 1.10.1 Apr 13, 2020
+1
View File
@@ -139,6 +139,7 @@ export default abstract class Init<ApiType extends ApiTypes> extends Decorate<Ap
this._runtimeMetadata = metadata;
this._runtimeVersion = version;
this._rx.runtimeVersion = version;
this.registerTypes(getSpecTypes(this.registry, this._runtimeChain as Text, version.specName, version.specVersion));
this.injectMetadata(metadata, false);