diff --git a/src/app/core/services/contract.service.ts b/src/app/core/services/contract.service.ts index d3265167b071af7de7651e2f8e86322caba9daad..5b2f6e5a51e6829e4fbd2d83451fae0372d3c810 100644 --- a/src/app/core/services/contract.service.ts +++ b/src/app/core/services/contract.service.ts @@ -454,7 +454,7 @@ export class ContractService extends BaseService { const commitment = buffPedersenHash(preimage) const commitmentHex = toFixedHex(commitment) - const saveNote = `0x${nullifier.toString(16, 'hex').padEnd(62, '0')}${secret.toString(16, 'hex').padEnd(62, '0')}`; + const saveNote = `0x${nullifier.toString(16, 'hex').padStart(62, '0')}${secret.toString(16, 'hex').padStart(62, '0')}`; const hexNote = `0x${preimage.toString('hex')}` const password = this.getOrSetPasswordLocally();