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:
committed by
Jaco Greeff
parent
7b56a52fc3
commit
e7f488ed89
@@ -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}`);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user