This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.8; | |
// functions receive() and fallback() are used to receive low-level call data | |
// used when there is no valid function to be called in contract | |
contract FallbackExample { | |
uint256 public result; | |
receive() external payable { |