mirror of
https://github.com/status-im/hackathon-registration-dapp.git
synced 2025-02-02 23:53:39 +00:00
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');
|
||||
|
||||
codes.push(code);
|
||||
elements.push(sha3(new Buffer(code, 'hex')));
|
||||
elements.push(sha3(Buffer.from(code, 'hex')));
|
||||
}
|
||||
|
||||
const merkleTree = new MerkleTree.default(elements);
|
||||
|
Loading…
x
Reference in New Issue
Block a user