Metadata v7 (#1182)
* Make a start... static is in, code copied as a start. * Get exports (more-or-less) right * Well, the v7/* tests pass... now just to tweak storage generation * Linting is happy, it doesn't mean it will work... * It compiles... ship it.
This commit is contained in:
@@ -14,7 +14,7 @@ import { stringCamelCase } from '@polkadot/util';
|
||||
* @param metadata - The metadata
|
||||
*/
|
||||
export default function fromMetadata (metadata: Metadata): Constants {
|
||||
return metadata.asV6.modules.reduce((result, moduleMetadata): Constants => {
|
||||
return metadata.asV7.modules.reduce((result, moduleMetadata): Constants => {
|
||||
if (moduleMetadata.constants.isEmpty) {
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user