Expose .entries() for DoubleMaps (#1750)

* Expose .entries() for DoubleMaps

* DoubleMap vs Map test

* Fix decoration

* Remove prefixed map

* Allow SoubleMap entries() with arguments

* DoubleMap with & without params

* Remove debug log

* Update CHANGELOG

* ... and working... finally.

* Cleanup debug logs
This commit is contained in:
Jaco Greeff
2020-01-27 17:13:53 +01:00
committed by GitHub
parent edb856c94f
commit 6e2ad7789e
8 changed files with 72 additions and 30 deletions
+1 -8
View File
@@ -163,18 +163,11 @@ function formattingTests (version: string, decorated: Metadata, encodedValues: [
});
it('handles fallbacks for linked maps (new metadata only)', (done): void => {
const iterKey = decorated.query.staking.validators && decorated.query.staking.validators.iterKey;
// skip for old
if (!iterKey) {
return done();
}
api.state
.subscribeStorage([[decorated.query.staking.validators, '0x00']])
.subscribe(([value]: Codec[]): void => {
expect(value).toBeDefined();
// console.error('linked falklback', value);
// console.error('linked fallback', value);
done();
});