huffmate
huffmate copied to clipboard
optimize: SafeTransferLib
Overview
At the moment, the SafeTransferLib implementation uses right padded function selectors (see: https://github.com/pentagonxyz/huffmate/blob/main/src/utils/SafeTransferLib.huff#L25). Instead, we should follow the original Solady method of storing a non-padded selector and using mem[28:..] for the calldata (example) to reduce codesize.