diff --git a/test/XFTanon.mainnet.test.js b/test/XFTanon.mainnet.test.js index 36b56ef2c0fb8f8c34961cf2ffb8a513fc39687b..e458dd5108b396df7776a756272664e1c9dc1163 100644 --- a/test/XFTanon.mainnet.test.js +++ b/test/XFTanon.mainnet.test.js @@ -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)