Js2Py icon indicating copy to clipboard operation
Js2Py copied to clipboard

Issues when using Js2py

Open aman-jangu opened this issue 4 years ago • 0 comments

Hey, I am trying to run this js code in python but facing some issues.

import { recoverPersonalSignature } from 'eth-sig-util'; import { bufferToHex } from 'ethereumjs-util';

now my 1st problem is how to import buffterToHex and recoverPersonalSignature with require ? and 2nd problem is module 'eth-sig-util' has been Deprecated in favor of '@metamask/eth-sig-util' and I am not able to install @metamask/eth-sig-util. 3rd issue is when I run js2py.eval_js6('let a = () => 11; a()') It returns - Initialised babel! instead of 11. Thanks

aman-jangu avatar Dec 28 '21 11:12 aman-jangu