Ensure that the WHBAR ****token ID is associated with the account prior to calling the deposit function. Failure to do so will result in a TOKEN_NOT_ASSOCIATED_TO_ACCOUNT error
Function name: deposit
Copy
Ask AI
function deposit() public payable { IWHBAR(whbarContract).deposit{value: msg.value}(msg.sender, msg.sender);}