Browse Source

Always use the same registry instance in Pioneer

Leszek Wiesner 4 years ago
parent
commit
7edff5e066
1 changed files with 2 additions and 7 deletions
  1. 2 7
      pioneer/packages/react-api/src/typeRegistry.ts

+ 2 - 7
pioneer/packages/react-api/src/typeRegistry.ts

@@ -1,9 +1,4 @@
-// Copyright 2017-2020 @polkadot/react-api authors & contributors
-// This software may be modified and distributed under the terms
-// of the Apache-2.0 license. See the LICENSE file for details.
-
-import { TypeRegistry } from '@polkadot/types';
-
-const registry = new TypeRegistry();
+// Joysteam-specific: reuse the registry exported by @joystream/types
+import { registry } from '@joystream/types';
 
 export default registry;