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

fix: corrupted paper-wallet backup #302

Closed
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This application is built on `React Native` and therefore assumes you have all t
### Prerequisites

- The **default network configuration** is fetched from the `env/default.json` file, and as part of the first-time setup, you should provide these. Check the `env/default.json.example` file to see what keys are required.
- Node version should be **10.xx.x** [A slight limitation because of [realmjs](https://github.com/realm/realm-js) dependency]
- Node version should be **12.1.0** or above.
- [Hermes](https://hermesengine.dev/) is disabled [because of Realm dependency]
- Android hosts 2 different product flavors - `dev` and `prod`, so you will need to specify this when building/releasing the application for android.
- [Yarn](https://yarnpkg.com/en/) is preferred over **NPM** as a package manager.
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"react-redux": "^7.2.1",
"react-zlib-js": "^1.0.4",
"readable-stream": "^3.4.0",
"realm": "4.0.0-beta.0",
"realm": "6.0.1",
"redux": "^4.0.5",
"redux-thunk": "^2.3.0",
"regenerator": "0.9.7",
Expand All @@ -109,10 +109,10 @@
"string_decoder": "~0.10.25",
"symbol-address-book": "^1.0.0",
"symbol-hd-wallets": "0.14.1-alpha-202103051108",
"symbol-paper-wallets": "^1.0.2",
"symbol-post-launch-optin-module": "1.0.1",
"symbol-qr-library": "0.14.1-alpha-202103081047",
"symbol-sdk": "1.0.2-alpha-202108061451",
"symbol-wallets-lib": "0.1.0-alpha-202201201957",
"timers-browserify": "^1.0.1",
"tls-browserify": "^0.2.2",
"tty-browserify": "0.0.0",
Expand Down
4 changes: 2 additions & 2 deletions scripts/fix-qr-code-workaround.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ fs.readFile(MAIN_FILE_PATH, 'utf8', function(err, data) {
});
});

const MODULE_FILE_PATH = __dirname + '/../node_modules/symbol-paper-wallets/node_modules/symbol-qr-library/dist/src/QRCode.js';
const MODULE_FILE_PATH = __dirname + '/../node_modules/symbol-wallets-lib/node_modules/symbol-qr-library/dist/src/QRCode.js';

if (fs.existsSync(MODULE_FILE_PATH)) {
fs.readFile(MODULE_FILE_PATH, 'utf8', function(err, data) {
const formatted = data.replace(/require\("qrcode"\)/g, 'require("qrcode/lib")');

fs.writeFile(MODULE_FILE_PATH, formatted, 'utf8', function(err) {
if (err) return console.log(err);
else console.log('[+] Fixed QR Code under paper-wallets module...');
else console.log('[+] Fixed QR Code under symbol-wallets-lib module...');
});
});
}
2 changes: 1 addition & 1 deletion src/services/AccountService.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import type { AppNetworkType, NetworkModel } from '@src/storage/models/NetworkMo
import type { MosaicModel } from '@src/storage/models/MosaicModel';
import { AccountSecureStorage } from '@src/storage/persistence/AccountSecureStorage';
import MosaicService from '@src/services/MosaicService';
import { SymbolPaperWallet } from 'symbol-paper-wallets';
import { SymbolPaperWallet } from 'symbol-wallets-lib';
import { getAccountIndexFromDerivationPath } from '@src/utils/format';

export default class AccountService {
Expand Down
Loading