Bump deps, type import on generated (#2075)
* Bump deps, type import on generated * type imports in types/types * Re-export defs * Split imports/exports * Additional type import * Remove import type * Remove dupes
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.8.7",
|
||||
"@babel/runtime": "^7.9.0",
|
||||
"@polkadot/types": "1.8.0-beta.7",
|
||||
"@polkadot/util": "^2.6.2",
|
||||
"@polkadot/util-crypto": "^2.6.2",
|
||||
|
||||
@@ -15,7 +15,7 @@ export default class MagicNumber extends U32 {
|
||||
super(registry, value);
|
||||
|
||||
if (!this.isEmpty) {
|
||||
const magic = new U32(registry, MAGIC_NUMBER);
|
||||
const magic = registry.createType('u32', MAGIC_NUMBER);
|
||||
|
||||
assert(this.eq(magic), `MagicNumber mismatch: expected ${magic.toHex()}, found ${this.toHex()}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user