pragma solidity ^0.8.1;
      
      contract contract3 {
        function add(uint x, uint y) external pure returns (uint) {
          return x + y;
        }
        function sub(uint x, uint y) external pure returns (uint) {
          return x - y;
        }
      }

      Javascript language logo
      SolidityContract

      CodingBook

      pragma solidity ^0.8.1;

      This is a code block that tells the compiler that the contract code has been written in Solidity 0.8.1. This is required in order to use some of the newer features of that version of the Solidity language.

      Shortcut: SolidityContract.co

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.