diff --git a/core/utils/mod.ts b/core/utils/mod.ts index 2f302f6..68a001d 100644 --- a/core/utils/mod.ts +++ b/core/utils/mod.ts @@ -1,5 +1,8 @@ +import * as dotUtils from '@polkadot/util'; + +export { dotUtils }; + export * from './contractTxUtils.ts'; export * from './contracts/mod.ts'; export * from './getExpiredItem.ts'; -export * from './parseUnits.ts'; export * from './pseudoRandomId.ts'; diff --git a/core/utils/parseUnits.ts b/core/utils/parseUnits.ts deleted file mode 100644 index cb38776..0000000 --- a/core/utils/parseUnits.ts +++ /dev/null @@ -1,4 +0,0 @@ -import BN from 'bn.js'; - -export const stringNumberToBN = (valWithCommas: string): typeof BN => - new BN(valWithCommas.split(',').join(''));