huffmate icon indicating copy to clipboard operation
huffmate copied to clipboard

optimize: SafeTransferLib

Open clabby opened this issue 3 years ago • 0 comments

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.

clabby avatar Oct 16 '22 22:10 clabby