Remove /index imports (swap to bare) (#362)
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
import { DecodeFunc, DecodeOutput } from './types';
|
||||
|
||||
import { assert } from '@polkadot/util/index';
|
||||
import { assert } from '@polkadot/util';
|
||||
|
||||
import decodeListLong from './listLong';
|
||||
import decodeListShort from './listShort';
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the MPL-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { assert, u8aToHex } from '@polkadot/util/index';
|
||||
import { assert, u8aToHex } from '@polkadot/util';
|
||||
|
||||
import internalDecode from './decode';
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
import { DecodeFunc, DecodeOutput } from './types';
|
||||
|
||||
import { assert } from '@polkadot/util/index';
|
||||
import { assert } from '@polkadot/util';
|
||||
|
||||
import safeParseInt from './safeParseInt';
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
import { DecodeFunc, DecodeOutput } from './types';
|
||||
|
||||
import { assert } from '@polkadot/util/index';
|
||||
import { assert } from '@polkadot/util';
|
||||
|
||||
import safeParseInt from './safeParseInt';
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the MPL-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { assert } from '@polkadot/util/index';
|
||||
import { assert } from '@polkadot/util';
|
||||
|
||||
export default function safeParseInt (input: Uint8Array): number {
|
||||
assert(input[0] > 0, 'invalid rlp, extra zeros found');
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
import { DecodeFunc, DecodeOutput } from './types';
|
||||
|
||||
import { assert } from '@polkadot/util/index';
|
||||
import { assert } from '@polkadot/util';
|
||||
|
||||
export default function decodeString (decode: DecodeFunc, input: Uint8Array): DecodeOutput {
|
||||
const firstByte = input[0];
|
||||
|
||||
Reference in New Issue
Block a user