Skip to content

Commit

Permalink
Use array in place for diversifierIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
panleone committed Nov 16, 2023
1 parent 2a8dd09 commit 216b4c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/pivx_shield.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class PIVXShield {
* Diversifier index of the last generated address.
* @private
*/
#diversifierIndex = new Uint8Array(11);
#diversifierIndex = new Array(11).fill(0);

/**
* @type {boolean}
Expand Down Expand Up @@ -423,6 +423,7 @@ export class PIVXShield {
* @returns {Promise<string>} new shield address
*/
async getNewAddress() {
console.log(this.#diversifierIndex)
const { address, diversifier_index } = await this.callWorker(
"generate_next_shielding_payment_address",
this.#extfvk,
Expand Down

0 comments on commit 216b4c5

Please sign in to comment.