Skip to content

Commit

Permalink
Add metadat array (hack around json import)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacogr committed Sep 28, 2018
1 parent bd9d3e6 commit bbe2a30
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions packages/api-codec/src/Metadata.array.ts

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/type-storage/src/testing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.

import metadataJson from '@polkadot/api-codec/Metadata.rpc.json';
import metadataArray from '@polkadot/api-codec/Metadata.array';
import Metadata from '@polkadot/api-codec/Metadata';

import storage from './index';
import fromMetadata from './fromMetadata';

export default fromMetadata(
storage,
new Metadata().fromJSON(metadataJson.result)
new Metadata().fromJSON(metadataArray)
);

0 comments on commit bbe2a30

Please sign in to comment.