0xsequence / sstore2

Faster & cheaper contract key-value storage for Ethereum Contracts
MIT License
428 stars 31 forks source link

fix memory over-allocation #1

Closed kmbarry1 closed 2 years ago

kmbarry1 commented 2 years ago

The byte array used to store the loaded bytecode only needs to have 32+size (rounded to nearest word) allocated for it; _start is just the index to begin reading from.

thedavidmeister commented 2 years ago

fwiw i'm using this commit and my tests are still passing