Skip to content

Commit 6f9950a

Browse files
authored
Merge pull request #1183 from near/feat/naj-next
feat: near-api-js@5.0.0
2 parents 441849d + 10359c2 commit 6f9950a

File tree

6 files changed

+3626
-4636
lines changed

6 files changed

+3626
-4636
lines changed

.prettierrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
22
"singleQuote": true
3-
}
3+
}

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
"ethers": "5.7.2",
123123
"https-browserify": "1.0.0",
124124
"is-mobile": "4.0.0",
125-
"near-api-js": "4.0.3",
125+
"near-api-js": "5.0.0",
126126
"near-seed-phrase": "0.2.0",
127127
"next": "13.3.0",
128128
"ngx-deploy-npm": "7.1.0",
@@ -153,6 +153,8 @@
153153
"@angular/language-service": "15.2.9",
154154
"@babel/preset-react": "7.16.7",
155155
"@babel/runtime": "7.24.8",
156+
"@near-js/keystores": "0.2.0",
157+
"@near-js/types": "0.3.0",
156158
"@nrwl/js": "16.0.0",
157159
"@nrwl/rollup": "16.0.0",
158160
"@nrwl/tao": "16.0.0",

packages/account-export/src/lib/components/ExportAccount.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,9 @@ export const ExportAccount: React.FC<ExportAccountProps> = ({
196196
setIsLoading(true);
197197
const accountsWithDetails = await Promise.all(
198198
accounts.map(async ({ accountId, privateKey }) => {
199-
const keyPair = nearAPI.utils.KeyPair.fromString(privateKey);
199+
const keyPair = nearAPI.utils.KeyPair.fromString(
200+
privateKey as nearAPI.utils.KeyPairString
201+
);
200202
const { type } = await getAccountType({
201203
provider,
202204
accountId,

packages/arepa-wallet/src/lib/arepa-wallet.ts

+1
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ const ArepaWallet: WalletBehaviourFactory<
141141
methodNames,
142142
successUrl,
143143
failureUrl,
144+
keyType: "ed25519",
144145
});
145146

146147
return getAccounts();

packages/my-near-wallet/src/lib/my-near-wallet.ts

+1
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ const MyNearWallet: WalletBehaviourFactory<
143143
methodNames,
144144
successUrl,
145145
failureUrl,
146+
keyType: "ed25519"
146147
});
147148

148149
return getAccounts();

0 commit comments

Comments
 (0)