File tree 6 files changed +3626
-4636
lines changed
account-export/src/lib/components
6 files changed +3626
-4636
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"singleQuote": true
3
- }
3
+ }
Original file line number Diff line number Diff line change 122
122
"ethers" : " 5.7.2" ,
123
123
"https-browserify" : " 1.0.0" ,
124
124
"is-mobile" : " 4.0.0" ,
125
- "near-api-js" : " 4 .0.3 " ,
125
+ "near-api-js" : " 5 .0.0 " ,
126
126
"near-seed-phrase" : " 0.2.0" ,
127
127
"next" : " 13.3.0" ,
128
128
"ngx-deploy-npm" : " 7.1.0" ,
153
153
"@angular/language-service" : " 15.2.9" ,
154
154
"@babel/preset-react" : " 7.16.7" ,
155
155
"@babel/runtime" : " 7.24.8" ,
156
+ "@near-js/keystores" : " 0.2.0" ,
157
+ "@near-js/types" : " 0.3.0" ,
156
158
"@nrwl/js" : " 16.0.0" ,
157
159
"@nrwl/rollup" : " 16.0.0" ,
158
160
"@nrwl/tao" : " 16.0.0" ,
Original file line number Diff line number Diff line change @@ -196,7 +196,9 @@ export const ExportAccount: React.FC<ExportAccountProps> = ({
196
196
setIsLoading ( true ) ;
197
197
const accountsWithDetails = await Promise . all (
198
198
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
+ ) ;
200
202
const { type } = await getAccountType ( {
201
203
provider,
202
204
accountId,
Original file line number Diff line number Diff line change @@ -141,6 +141,7 @@ const ArepaWallet: WalletBehaviourFactory<
141
141
methodNames,
142
142
successUrl,
143
143
failureUrl,
144
+ keyType : "ed25519" ,
144
145
} ) ;
145
146
146
147
return getAccounts ( ) ;
Original file line number Diff line number Diff line change @@ -143,6 +143,7 @@ const MyNearWallet: WalletBehaviourFactory<
143
143
methodNames,
144
144
successUrl,
145
145
failureUrl,
146
+ keyType : "ed25519"
146
147
} ) ;
147
148
148
149
return getAccounts ( ) ;
You can’t perform that action at this time.
0 commit comments