Created
April 4, 2024 11:45
-
-
Save Apolloelephen/36fefccdca91399dd184f6920beda411 to your computer and use it in GitHub Desktop.
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.23; | |
contract pureView{ | |
struct Class{ | |
uint year; | |
uint id; | |
} | |
Class[] public allAddress; | |
uint public mynumber; | |
function viewclass() public view returns(Class[] memory){ | |
return allAddress; | |
} | |
function getYear() public pure returns(uint){ | |
return 2 + 2; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment