Hey there,
I want to send a privatekey signed transaction to withdraw my erc20 tokens.
const signer = new ethers.Wallet(privateKey, provider);
let contractInstance = new ethers.Contract(contractAddress, ERC20_ABI, signer);
let abicoder = new ethers.utils.AbiCoder()
let encodedAbi = abicoder.encode(contractInstance.transferFrom(address, rec, balance))
error: if (types.length !== values.length) {TypeError: Cannot read properties of undefined (reading ‘length’)
Is this approach correct ?