Fixes for examples (#1408)

* Add various fixes for the examples
* Add the workaround for proposals for `impl_version` 94
* TODO: fix `toPromise` issue for queries with RxJS
This commit is contained in:
James Lefrère
2019-09-20 10:15:46 +02:00
committed by Jaco Greeff
parent 7b56a52fc3
commit e7f488ed89
8 changed files with 17 additions and 14 deletions
@@ -9,7 +9,7 @@ async function main () {
const api = await ApiPromise.create();
// Subscribe to chain updates and log the current block number on update.
const unsubscribe = await api.rpc.chain.subscribeNewHead((header) => {
const unsubscribe = await api.rpc.chain.subscribeNewHeads((header) => {
console.log(`Chain is at block: #${header.number}`);
});