I hereby claim:
- I am kyledewy on github.
- I am kyledewy (https://keybase.io/kyledewy) on keybase.
- I have a public key ASDD2tZhpRmrXjo6uKB1OXXc_zhHZnkk3CctO2VsZ_Peswo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| function fib3(uint n) external pure returns(uint a) { | |
| if (n == 0) { | |
| return 0; | |
| } | |
| uint h = n / 2; | |
| uint mask = 1; | |
| // find highest set bit in n | |
| while(mask <= h) { | |
| mask <<= 1; | |
| } |
| function () | |
| payable | |
| external { | |
| address implementation = Resolver(resolver()).getUserVersion(msg.sender); | |
| require(implementation != address(0), "INVALID IMPLEMENTATION"); | |
| assembly { | |
| let ptr := mload(0x40) | |
| calldatacopy(ptr, 0, calldatasize) // Copy incoming calldata | |
| let result := delegatecall(gas, implementation, ptr, calldatasize, 0, 0) | |
| let size := returndatasize |
| contract Example { | |
| bytes32 public highestHash; // The current highest hash | |
| // @notice if the sha3() hash of the string is higher than highest hash, replace highestHash with 'a' | |
| function setHighestHash(string memory a) | |
| public { | |
| bytes32 newHash = keccak256(abi.encodePacked(a)); | |
| require(isHighest(a), "NOT HIGHEST HASH"); | |
| highestHash = newHash; |
| pragma solidity >=0.5.0; | |
| import './Proxy.sol'; | |
| import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; | |
| // @title is where Proxy can lookup users version preference and update valid implementations | |
| // @notice resolver is ownable | |
| contract Resolver is Ownable{ |