Let static use the RPC response json directly (#509)

* Let static use the RPC response json directly

* Put data in static

* Remove useless file
This commit is contained in:
Amaury Martiny
2018-12-21 13:17:45 +01:00
committed by Jaco Greeff
parent 8ed6d88114
commit db953403ba
4 changed files with 3 additions and 12 deletions
+2 -2
View File
@@ -2,13 +2,13 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import compacted from '../json/Metadata.latest.json';
import Metadata from './index';
import latestParsed from './latest.substrate.json';
import rpcData from './static';
describe('Metadata', () => {
it('decodes latest properly', () => {
const decoded = new Metadata(compacted.result);
const decoded = new Metadata(rpcData);
const str = JSON.stringify(decoded.toJSON());
console.error(str);
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long