You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(node:83482) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
I think should use Buffer.from instead of new Buffer.
$ grep -nrE '[^a-zA-Z](Slow)?Buffer\s*\(' --exclude-dir node_modules/symbol-sdk/*
node_modules/symbol-sdk/dist/src/core/format/RawAddress.js:84: const ripemdHash = new ripemd160().update(new Buffer(publicKeyHash)).digest();
node_modules/symbol-sdk/src/core/format/RawAddress.ts:86: const ripemdHash = new ripemd160().update(new Buffer(publicKeyHash)).digest();
I got an error.
I think should use Buffer.from instead of new Buffer.
https://github.com/nemtech/symbol-sdk-typescript-javascript/blob/main/src/core/format/RawAddress.ts#L86
Steps to reproduce the problem.
Specifications like the version of the project, operating system, or hardware.
nodejs v10.24.0
sdk 0.23.2
The text was updated successfully, but these errors were encountered: