diff --git a/packages/hardhat/contracts/Lottery.sol b/packages/hardhat/contracts/Lottery.sol index 79940f7..d5a30eb 100644 --- a/packages/hardhat/contracts/Lottery.sol +++ b/packages/hardhat/contracts/Lottery.sol @@ -139,8 +139,13 @@ contract Lottery is Ownable { paymentToken.burnFrom(msg.sender, amount); payable(msg.sender).transfer(amount / purchaseRatio); } + function getBalance(address account)public view returns(uint256 balance) { balance = paymentToken.balanceOf(account); } + function approveAllowance(address spender, uint256 amount) external{ + paymentToken.approve(spender, amount) + } + } \ No newline at end of file