0

I'm have created ERC865 token so that users can send tokens without having ether. I followed 1 and 2. My contract recovering the correct address after generating the sign using Metamask customized function web3.eth.sign() using this. But when I try the same on Ganache-cli, I'm getting wrong address. Both returning different addresses for the same hash. Is there any way to get the exact sign as generated by Metamask? I'm using the same method - web3.eth.sign(from, hash).

web3.eth.sign(from, hash, (error, result) => {
    if (error) reject(error);
    console.log("Sign : "+ result)
    resolve(result);
    mySign = result;
})

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.