From ba55b538b759d238eb84f7676d42026e5b9368d4 Mon Sep 17 00:00:00 2001 From: Charlie McKenzie Date: Fri, 1 Mar 2024 23:38:33 +1100 Subject: [PATCH] Adjustment to elliptic import --- packages/x-client/src/utils/stark/starkCurve.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/x-client/src/utils/stark/starkCurve.ts b/packages/x-client/src/utils/stark/starkCurve.ts index 6379710778..797c798cdd 100644 --- a/packages/x-client/src/utils/stark/starkCurve.ts +++ b/packages/x-client/src/utils/stark/starkCurve.ts @@ -2,16 +2,17 @@ import { Signer } from '@ethersproject/abstract-signer'; import { splitSignature } from '@ethersproject/bytes'; import hash from 'hash.js'; -import * as pkg from 'elliptic'; +import * as elliptic from 'elliptic'; import * as encUtils from 'enc-utils'; // eslint-disable-next-line @typescript-eslint/naming-convention import BN from 'bn.js'; -import { hdkey } from 'ethereumjs-wallet'; +import * as ethereumjsWallet from 'ethereumjs-wallet'; import { createStarkSigner } from './starkSigner'; import * as legacy from './legacy/crypto'; import { getStarkPublicKeyFromImx } from './getStarkPublicKeyFromImx'; -const { ec, curves } = pkg; +const { ec, curves } = elliptic; +const { hdkey } = ethereumjsWallet; /* Stark-friendly elliptic curve