Support for new inherent digests (#973)

* Support for new inherent digests

* Latest metadata

* Pull in new council & democracy types

* Update tests for new digest

* Digest logsWith/Without

* Round-up e2e tests

* Remove stray debugging log

* Update CHANGELOG.md

Co-Authored-By: Amaury Martiny <amaury.martiny@protonmail.com>
This commit is contained in:
Jaco Greeff
2019-06-06 13:47:52 +02:00
committed by GitHub
co-authored by Amaury Martiny
parent b1e7a0e045
commit 3227ce20a2
19 changed files with 537 additions and 324 deletions
@@ -157,6 +157,13 @@ describe.skip('Promise e2e queries', () => {
);
});
it('can retrive header by hash', async () => {
const latest = await api.rpc.chain.getHeader() as Header;
const specific = await api.rpc.chain.getHeader(latest.hash) as Header;
expect(latest.hash).toEqual(specific.hash);
});
it('makes a query at a latest block (specified)', async () => {
const header = await api.rpc.chain.getHeader() as Header;
const events = await api.query.system.events.at(header.hash) as Vector<EventRecord>;