Skip to content

Commit

Permalink
log delete account index check added
Browse files Browse the repository at this point in the history
  • Loading branch information
SDargarh committed Aug 29, 2023
1 parent 10a2acb commit 63ec1c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async function removeEmptyAccounts(indexAddress, keyringInstance, vaultState, un
}
if(logs[i].action === 'delete-account') {
let ind = accountsArray.findIndex((acc) => acc.address === Web3.utils.toChecksumAddress(logs[i].address))
accountsArray[ind].isDeleted = ind ? true : accountsArray[ind].isDeleted;
ind >= 0 ? accountsArray[ind].isDeleted = true : false;
}
}

Expand Down

1 comment on commit 63ec1c5

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage Report (70%)
File% Stmts% Branch% Funcs% LinesUncovered Line #s
All files68.9961.2870.4270.1 
chains100100100100 
   index.js100100100100 
config100100100100 
   index.js100100100100 
constants100100100100 
   index.js100100100100 
constants/responses100100100100 
   index.js100100100100 
lib65.2261.1866.6666.59 
   keyring.js62.0859.6263.6363.5445, 131, 137–149, 169, 177–185, 194–196, 239–337, 356, 364–365, 373–383, 394, 414–425, 441–444, 476–480, 491–500, 534, 557–613, 645, 676, 684–700, 726–728, 759–767, 790–794, 813, 851
   vault.js85.93758085.9319, 26, 41–44, 56, 65–68
utils81.0362.1682.3581.48 
   helper.js81.0362.1682.3581.4810–17, 70–71, 87, 99, 111, 124–126, 142–144, 177–181, 222–224

Please sign in to comment.