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

This commit is contained in:
Minecon724 2025-10-16 21:06:33 +02:00
commit 915973c2e1
Signed by untrusted user who does not match committer: m
GPG key ID: A02E6E67AB961189
2 changed files with 2 additions and 2 deletions

View file

@ -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,
},

View file

@ -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`);