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:
committed by
Jaco Greeff
parent
8ed6d88114
commit
db953403ba
@@ -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
Reference in New Issue
Block a user