Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.8.2 #578

Merged
merged 7 commits into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ This document logs notable, developer-facing updates to the NEAR Mobile Wallet.

- Document resolved bugs for improved performance and security.

## 1.8.2

### 🐛 Bug Fixes

- Fix manual account import [fix/manual-account-import](https://github.com/Peersyst/near-mobile-wallet/pull/574)
- Fix wrong schema for callback url [fix/sign-message-wrong-schema](https://github.com/Peersyst/near-mobile-wallet/pull/573)

## 1.8.1

### 🐛 Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
name: "NEAR Mobile",
slug: "NEARMobileWallet",
owner: "peersyst",
version: "1.8.0",
version: "1.8.2",
orientation: "portrait",
icon: "./assets/images/near-icon.png",
scheme: "near-mobile-wallet",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.8.0",
"version": "1.8.2",
"name": "near-mobile-wallet",
"private": true,
"main": "./index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/asset/image/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export { default as hot } from "./tokens/hot.png";
export { default as ht } from "./tokens/ht.png";
export { default as intel } from "./tokens/intel.png";
export { default as jump } from "./tokens/jump.png";
export { default as kat } from "./tokens/kat.png";
export { default as kat } from "./tokens/kat2.png";
export { default as linear } from "./tokens/linear.png";
export { default as link } from "./tokens/link.png";
export { default as lol } from "./tokens/lol.png";
Expand Down
Binary file removed src/asset/image/tokens/kat.png
Binary file not shown.
Binary file added src/asset/image/tokens/kat2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/config/configs/config.base.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"appVersion": "1.8.1",
"appVersion": "1.8.2",
"projectName": "near-mobile-wallet",
"minimumTransactionAmount": 61,
"mainnetExplorerLink": "https://nearblocks.io",
Expand Down
2 changes: 1 addition & 1 deletion src/module/sdk/NearSdkService/NearSdkService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,7 @@ export class NearSDKService {
message: "string",
nonce: { array: { type: "u8", len: 32 } },
recipient: "string",
callbackUrl: { option: { struct: { callbackUrl: "string" } } },
callbackUrl: { option: "string" },
},
},
payload,
Expand Down
4 changes: 3 additions & 1 deletion src/module/wallet/utils/WalletController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -444,9 +444,11 @@ export default new (class WalletController {
//Check if the some of the account's accessKeys are in the secure storage
const walletGroups = await WalletStorage.getSecureWallets(network);
const secureWallet = walletGroups.find((walletGroup) => {
const publicKey = NearSDKService.getPublicKeyFromSecretKey(walletGroup.privateKey);
const keyPair = NearSDKService.createKeyPairFromSecretKey(walletGroup.privateKey);
const publicKey = NearSDKService.getPublicKeyFromSecretKey(keyPair.extendedSecretKey);
return accessKeys.includes(publicKey);
});

if (!secureWallet) return { canImport: false };

//Check if the account is already in the unencrypted storage
Expand Down
Loading