Skip to content

Commit

Permalink
feat: get type ref from near-api-js
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Haynes committed Aug 27, 2024
1 parent 06aa366 commit f8a4991
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/account-export/src/lib/components/ExportAccount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import type {
AccessKeyView,
AccountView,
} from "near-api-js/lib/providers/provider";
import type { KeyPairString } from "@near-js/crypto";

import { AccountSelect } from "./AccountSelect";
import { Passphrase } from "./Passphrase";
Expand Down Expand Up @@ -198,7 +197,7 @@ export const ExportAccount: React.FC<ExportAccountProps> = ({
const accountsWithDetails = await Promise.all(
accounts.map(async ({ accountId, privateKey }) => {
const keyPair = nearAPI.utils.KeyPair.fromString(
privateKey as KeyPairString
privateKey as nearAPI.utils.KeyPairString
);
const { type } = await getAccountType({
provider,
Expand Down

0 comments on commit f8a4991

Please sign in to comment.