Closed rac-sri closed 3 years ago
toBuffer
will be available only if global Buffer object exists..
toBuffer
will be available only if global Buffer object exists..
How to i set this up in a react app ?
Sorry, I have no idea how to do this in react app :man_shrugging:
ok. No worries. Someone must be knowing,lets wait for an answer.
Found a solution:
const Buffer = require("buffer").Buffer'
const hashModeBuffer = bufferCV(new BN(hashMode, 10).toArrayLike(Buffer));
Getting this on a completely new cra setup:
code: