Skip to content

Commit

Permalink
add message to require
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandroscifoni committed Jan 5, 2024
1 parent 0f7a5be commit 42c6d12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smart_contract/Geth.sol
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ contract Geth is ERC20, Ownable {
* @dev function to buy Ether with tokens and transfer them to the buyer.
*/
function purchaseWei(uint256 tokenAmount) external {
require(balanceOf(msg.sender) >= tokenAmount);
require(balanceOf(msg.sender) >= tokenAmount,"you don't have this amount of token");
uint256 WeiAmount = calculateWeiAmount(tokenAmount);


Expand Down

0 comments on commit 42c6d12

Please sign in to comment.