-
-
Save casweeney/a1a5663e02580802574f4ca9bea7a9a8 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