Remove circular imports from types (#492)
* Remove circular imports from types - These are creating issues on RN and is not correct - Uint is equivalent to BN (extends it), so remove it. - Don't import all classes (it imports types itself) - CodecTypes can be exposed elsewhere if needed * Cleanup linting & imports * Cleanup compact decoding
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { CodecTypes } from '@polkadot/types/types';
|
||||
import { CodecTypes } from '@polkadot/types/classes';
|
||||
import { RpcParam } from '../types';
|
||||
|
||||
type RpcParamOptions = {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { CodecTypes } from '@polkadot/types/types';
|
||||
import { CodecTypes } from '@polkadot/types/classes';
|
||||
|
||||
export type RpcParam = {
|
||||
isOptional: boolean,
|
||||
|
||||
Reference in New Issue
Block a user