Fixed deprecated buffer creation
This commit is contained in:
parent
2710d7bfc9
commit
6f7a153ce5
|
@ -13,7 +13,7 @@ for(i = 0; i < numCodes; i++){
|
||||||
const code = crypto.randomBytes(codeLength).toString('hex');
|
const code = crypto.randomBytes(codeLength).toString('hex');
|
||||||
|
|
||||||
codes.push(code);
|
codes.push(code);
|
||||||
elements.push(sha3(new Buffer(code, 'hex')));
|
elements.push(sha3(Buffer.from(code, 'hex')));
|
||||||
}
|
}
|
||||||
|
|
||||||
const merkleTree = new MerkleTree.default(elements);
|
const merkleTree = new MerkleTree.default(elements);
|
||||||
|
|
Loading…
Reference in New Issue