Last active
September 16, 2022 17:51
-
-
Save Realkayzee/db8846fb43d415ddcf9356f1432d5e8f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import "./LibCast.sol"; | |
contract Cast{ | |
using Arithmetic for uint; | |
using Arithmetic for Arithmetic.Workers; | |
Arithmetic.Workers aw; | |
uint tem; | |
mapping(uint=>Arithmetic.Workers) workers; | |
mapping(uint=>mapping(uint=>mapping(string=>bytes32))) Wahala; | |
function checkAdd(uint256 a,uint256 b) public view returns(uint256){ | |
return tem.add(b); | |
} | |
function setStruct(uint8 _c,string memory _n,uint256 id) public { | |
aw.constructStruct(_c,_n,id,workers); | |
} | |
function see(uint id) public view returns(Arithmetic.Workers memory){ | |
return workers[id]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment