Hi Community,
Im having issues resolving the signer using ECDSA in Solidity. Im wondering if anyone has had this issue. I get invalid signature or it returns a 0x address. I overrode the ECDSA contract to accept the v 37 and v38 values, but i suspect its something to do with this.
Here is the simple node.js code. I get a successful response with signature in the console
async function signTx(sender, tokenQty, nonce) {
let hash = web3.utils.soliditySha3(sender,tokenQty,nonce);
console.log('hash: '+ hash);
const signResponse = await relayer.sign({message:hash});
console.log('sig: '+JSON.stringify(signResponse));
}
signTx('0x5B38Da6a701c568545dCfcB03FcB875f56beddC4',tokenQty,nonce)
.catch((err)=>{console.log(err)})