Js2Py
Js2Py copied to clipboard
Issues when using Js2py
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