Skip to content

Instantly share code, notes, and snippets.

@Realkayzee
Last active September 16, 2022 17:51
Show Gist options
  • Save Realkayzee/db8846fb43d415ddcf9356f1432d5e8f to your computer and use it in GitHub Desktop.
Save Realkayzee/db8846fb43d415ddcf9356f1432d5e8f to your computer and use it in GitHub Desktop.
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