out.eth
out.eth
it works if i use prettier. when using forge the format on save is not working. edit: restarting cursor did the trick
Wow, nice. This would save quit a bit I think - maybe 100 gas? There would be no need to store the address in memory either. Instead of an |...
We know in the CALLDATA it's organised like this: [function sig, owner, spender, amount] [4 bytes, 32 bytes, 32 bytes, 32 bytes] We could load: PUSH1 (0x04 + 0x10) 4...
Ah yeh of course
Ok. cool. I think it would look smth like this // get the last 16 bytes of owner with 16 padded zeros PUSH1 (0x04) 4 bytes - 3 gas CALLDATALOAD...
This is really fkn neat. Thanks. 🔥
Awesome find. I think the cheapest fix is this: PUSH32 (1
PUSH1 0x04 CALLDATALOAD PUSH1 0x02 MUL PUSH1 0x01 ADD Ok that is obviously more robust. I don’t think my assumption was reasonable actually. Say Bob has not approved Alice. Alice...
Nice. What’s the reason for marking the 255 bit instead of the 0 bit? Is it so that you don’t lose 1 bit on the address?
Awesome. I think they fail because the offsets are all shifted by a few bytes now. I wonder if there is a way to automatically update them.