Commit 062b239f authored by XFT's avatar XFT
Browse files

padding fix

parent 074a5657
......@@ -161,7 +161,7 @@ contract('XFTShifter', (accounts) => {
throw new Error("The data provided couldn't be encrypted or decrypted, please check the inputs");
}
}
encryptNote = async (deposit, key) => await xcrypt(`0x${deposit.nullifier.toString(16).padEnd(62, '0')}${deposit.secret.toString(16).padEnd(62, '0')}`, key);
encryptNote = async (deposit, key) => await xcrypt(`0x${deposit.nullifier.toString(16).padStart(62, '0')}${deposit.secret.toString(16).padStart(62, '0')}`, key);
xft = await XFT.at(allShifters['XFT'].contract)
token = await Token.at(allShifters['anonUSD500'].contract)
tokenETH = await Token.at(allShifters['anonETH1'].contract)
......
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