Hi there.
I'm attempting to use the truffle console to test my smart contract. The contract is supposed to take a deposit of WETH, but I'm not sure how to approve the transfer from inside the truffle console.
My contract holds the WETH token contract in a state variable as follows:
IERC20 public weth =
IERC20(address(0x007ceb23fd6bc0add59e62ac25578270cff1b9f619));
How can I approve a transfer of the tokens from the truffle console?