outdoteth / solwaifu

golfin with good !vibes
198 stars 19 forks source link

Replace PUSH 0x00 with CALLVALUE in functions where only one memory ptr is used #3

Open kristofgazso opened 2 years ago

kristofgazso commented 2 years ago

tests fail but lets pretend they don't

outdoteth commented 2 years ago

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.

kristofgazso commented 2 years ago

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.

let me know if you can fix it, I tried messing with the IMPORTANT hex numbers in transferFrom but with no success

outdoteth commented 2 years ago

Will probably refactor the bytecode out into some kind of asm file so that tags can be used and you don't need to calculate all the offsets.