Tiny fixes
Some checks are pending
CodeQL / Analyze (push) Waiting to run
Docker Hub / build_and_push (push) Waiting to run
Electron App Release / pre_build (push) Waiting to run
Electron App Release / release (AppImage, linux, checksums, checksums, false, ubuntu-20.04) (push) Blocked by required conditions
Electron App Release / release (dmg, mac, checksums, checksums, false, macos-11) (push) Blocked by required conditions
Electron App Release / release (exe, windows, checksums, checksums, true, windows-2022) (push) Blocked by required conditions
GitHub Pages / build-and-deploy (push) Waiting to run
Linting / lint (push) Waiting to run
Some checks are pending
CodeQL / Analyze (push) Waiting to run
Docker Hub / build_and_push (push) Waiting to run
Electron App Release / pre_build (push) Waiting to run
Electron App Release / release (AppImage, linux, checksums, checksums, false, ubuntu-20.04) (push) Blocked by required conditions
Electron App Release / release (dmg, mac, checksums, checksums, false, macos-11) (push) Blocked by required conditions
Electron App Release / release (exe, windows, checksums, checksums, true, windows-2022) (push) Blocked by required conditions
GitHub Pages / build-and-deploy (push) Waiting to run
Linting / lint (push) Waiting to run
This commit is contained in:
parent
a3d31e263d
commit
915973c2e1
2 changed files with 2 additions and 2 deletions
|
|
@ -73,7 +73,7 @@ export class AppSettingsService {
|
|||
name: 'dn724 (NL)',
|
||||
value: 'dn724-nl',
|
||||
api: 'https://coin.m724.dn42/rpc',
|
||||
ws: 'wss://coin.m724.dn42/rpc/ws',
|
||||
ws: 'wss://coin.m724.dn42/ws',
|
||||
auth: null,
|
||||
shouldRandom: true,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -330,7 +330,7 @@ function getAccountPublicKey(account) {
|
|||
if (!isValidAccount(account)) {
|
||||
throw new Error(`Invalid nano account`);
|
||||
}
|
||||
const account_crop = account.length === 64 ? account.substring(4, 64) : account.substring(5, 65);
|
||||
const account_crop = account.substring(account.length - 60, account.length);
|
||||
const isValid = /^[13456789abcdefghijkmnopqrstuwxyz]+$/.test(account_crop);
|
||||
if (!isValid) throw new Error(`Invalid nano account`);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue