bluealloy / revm

Ethereum Virtual Machine written in rust that is fast and simple to use
https://bluealloy.github.io/revm/
MIT License
1.57k stars 513 forks source link

Factor out `*COPY` common code #1637

Open DaniPopes opened 1 month ago

DaniPopes commented 1 month ago

All *COPY operations have the same inputs, execute the same operation, and have the same gas cost (except for EXTCODECOPY); the only difference is which buffer they copy from. This code can be factored out for less code duplication.

peyha commented 1 month ago

I'll tackle this one