Skip to content

Commit

Permalink
Test ticket
Browse files Browse the repository at this point in the history
  • Loading branch information
Duddino committed Dec 13, 2024
1 parent 717d435 commit 967379d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions scripts/masterkey.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,17 @@ export class HardwareWalletMasterKey extends HdMasterKey {
* @returns {Promise<HardwareWalletMasterKey>}
*/
static async create(nAccount = 0) {
for (let i = 0; i < 255; i++) {
const path = this.getDerivationPath(i, 0, 0)
.split('/')

Check failure on line 210 in scripts/masterkey.js

View workflow job for this annotation

GitHub Actions / Run linters

Mixed spaces and tabs
.slice(0, 4)

Check failure on line 211 in scripts/masterkey.js

View workflow job for this annotation

GitHub Actions / Run linters

Mixed spaces and tabs
.join('/');

Check failure on line 212 in scripts/masterkey.js

View workflow job for this annotation

GitHub Actions / Run linters

Mixed spaces and tabs
const xpub = await getHardwareWalletKeys(path, true, false);

Check failure on line 213 in scripts/masterkey.js

View workflow job for this annotation

GitHub Actions / Run linters

Mixed spaces and tabs
const {balance} = await (await fetch(`https://explorer.duddino.com/api/v2/xpub/${xpub}`)).json()

Check failure on line 214 in scripts/masterkey.js

View workflow job for this annotation

GitHub Actions / Run linters

Mixed spaces and tabs
if (balance != "0") {

Check failure on line 215 in scripts/masterkey.js

View workflow job for this annotation

GitHub Actions / Run linters

Mixed spaces and tabs

Check failure on line 215 in scripts/masterkey.js

View workflow job for this annotation

GitHub Actions / Run linters

Expected '!==' and instead saw '!='
alert(`index ${i} has balance`)
}

Check failure on line 217 in scripts/masterkey.js

View workflow job for this annotation

GitHub Actions / Run linters

Mixed spaces and tabs
}
const path = this.getDerivationPath(nAccount, 0, 0)
.split('/')
.slice(0, 4)
Expand Down

0 comments on commit 967379d

Please sign in to comment.