I am trying to execute a function from the truffle console and getting the error without much information.
contract LPTokenWrapper {
IERC20 public lp_tkn = IERC20(0xf7a35Eef60dC35fa2D3188Dfb22e635E4308fc8b);
function stake(uint256 amount) public {
_totalSupply = _totalSupply.add(amount);
_balances[msg.sender] = _balances[msg.sender].add(amount);
tkn.safeTransferFrom(msg.sender, address(this), amount);
}
}
from truffle console doing(with the same account which has lp_tkn) lp_wrp.stake(web3.utils.toWie("1"));
https://testnet.bscscan.com/tx/0x2eba99c94ba96513794da6e10e1c88d80e3ca619b13fc994428abc0e6fa2fd4c