Commit e68d5eed authored by XFT's avatar XFT
Browse files

padding fix

parent bde794d5
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment