Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Apolloelephen/36fefccdca91399dd184f6920beda411 to your computer and use it in GitHub Desktop.
Save Apolloelephen/36fefccdca91399dd184f6920beda411 to your computer and use it in GitHub Desktop.
// 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