Skip to content

Commit

Permalink
fix: ec import
Browse files Browse the repository at this point in the history
  • Loading branch information
janek26 committed Dec 9, 2022
1 parent 60e5366 commit 2084724
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions issues/oldHashAlgo/fix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { BigNumber } from "ethers";
import ora from "ora";
import { Provider } from "starknet-390/dist/provider";
import { Account as SNAccount } from "starknet-390/dist/account";
import { ec } from "starknet-390/dist/utils/ellipticCurve";
import { getKeyPair, getStarkKey } from "starknet-390/dist/utils/ellipticCurve";
import {
compileCalldata,
estimatedFeeToMaxFee,
Expand All @@ -27,8 +27,8 @@ export const fix = async (
if (!privateKey) {
throw new Error("No private key for account to credit");
}
const keyPair = ec.getKeyPair(privateKey);
const starkKey = ec.getStarkKey(keyPair);
const keyPair = getKeyPair(privateKey);
const starkKey = getStarkKey(keyPair);
if (!BigNumber.from(a.signer).eq(starkKey)) {
throw new Error(
"Account cant be controlled with the selected private key or seed"
Expand Down

0 comments on commit 2084724

Please sign in to comment.