// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
// Define a contract named EtherBox
contract EtherBox {
uint balance; // Stores the balance, initialized to 0 by default
// Event declaration for logging purposes
event logme(string);
// Function to increase the balance by 10. It doesn't require inputs and doesn't return outputs.
function SetBalance() public {
balance = balance + 10;
}
// Function to return the current balance. It's marked as payable to allow it to receive Ether, though it doesn't in this case.
function GetBalance() public payable returns(uint) {
return balance;
}
// Special function to handle receiving Ether directly to the contract without a function call
receive() external p