Vectorized

Results 46 issues of Vectorized
trafficstars

## Description After it turned branchless, the compiler might have precomputed the results for the simple tests during compile time (something something branchless functions being inlined). Added a few more...

## Description https://github.com/Vectorized/solady/pull/15 ## Checklist Ensure you completed **all of the steps** below before submitting your pull request: - [x] Ran `forge snapshot`? - [x] Ran `npm run lint`? -...

## Description Some simple gas optimizations. The avoidance of 32-byte constants is deliberate for balancing between deployment size of the parent contract and runtime costs. Gas before: ```CREATE3Test:testDeployERC20() (gas: 852410)```...

## Description Changes: - Assembly reverts for #157. - Optimized the success checks. - Removed redundant `mstore(0x60, 0)`s. You can try copypasta the revert assembly into something like Remix and...

## Description **Update:** The multiproof part _should_ be ok now. But if you can, help me double and triple check. The more eyes the better. Added a `multiProofVerify` function. Saves...

## Description Added a `toggle(uint256 index)` function to flip the bit at `index`. Also added the tests for unset and toggle. Ignore the gas increase in `testBitmapSetTo`. I've checked with...

The OpenZeppelin library has a convenient wrapper over the `ecrecover` function to ensure that the signature is valid and non-malleable. However, most of the time, users only need check whether...

good first issue

Sometimes, users may want to convert a uint256 into a hexadecimal representation. The following code snippet may be helpful. The behavior is based on OpenZeppelin's https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Strings.sol Except that it will...

Ain't much, but it's honest work. If bytecode size is of priority, feel free to close. Otherwise, may be worth it if the function is frequently called.

## Description This is a PR containing all the fixes. A report will be released later. ## Checklist Ensure you completed **all of the steps** below before submitting your pull...