Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Merge pull request #36 from MoMannn/master

 Add padLeft explanation.
  • Loading branch information...
xpepermint committed Jun 19, 2018
2 parents 29ffe4e + eaa694d commit 4c1b515caec8f01ef48b4f2d945525abe9d84cf9
Showing with 4 additions and 0 deletions.
  1. +4 −0 test/tokens/Xcert.test.js
@@ -11,6 +11,10 @@ contract('XcertMock', (accounts) => {
const id3 = web3.sha3('test3');
const id4 = web3.sha3('test4');
const proof = '1e205550c271490347e5e2393a02e94d284bbe9903f023ba098355b8d75974c8';
/*
* Pad left is needed to transform hex into bytes32 otherwise trailing 0 gets added and it changes
* the number.
*/
const config = [web3Util.padLeft(web3Util.numberToHex(1821195657), 64)];
const data = [];

0 comments on commit 4c1b515

Please sign in to comment.
You can’t perform that action at this time.