We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43f2ea3 commit c6bf4a3Copy full SHA for c6bf4a3
1 file changed
packages/keyring-eth-qr/src/qr-keyring-v2.ts
@@ -368,7 +368,7 @@ export class QrKeyringV2
368
): Promise<KeyringAccount[]> {
369
const { addressIndex } = options;
370
371
- if (typeof addressIndex !== 'number' || addressIndex < 0) {
+ if (!Number.isInteger(addressIndex) || addressIndex < 0) {
372
throw new Error(
373
`Invalid addressIndex: ${String(
374
addressIndex,
@@ -427,7 +427,7 @@ export class QrKeyringV2
427
);
428
}
429
430
- if (options.groupIndex < 0) {
+ if (!Number.isInteger(options.groupIndex) || options.groupIndex < 0) {
431
432
`Invalid groupIndex: ${options.groupIndex}. Must be a non-negative integer.`,
433
0 commit comments