Uniswap / v2-core

🦄 🦄 Core smart contracts of Uniswap V2
https://uniswap.org/docs
GNU General Public License v3.0
2.89k stars 3.11k forks source link

Keccak256 init code hash #190

Closed 0xfourzerofour closed 1 year ago

0xfourzerofour commented 1 year ago

I have taken the creation code from etherscan and tested it against the keccak256 hashing algorithm online.

The uniswapv2 documentation says that the computed hash should be 0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f

However when I put the creation code from etherscan into the function it gives me 9bb1c7971ee804c612ff67c797b1360aeb4174e9f16d29301553a62a799156b6

Screen Shot 2023-03-08 at 10 25 01 pm

Do you know what I am doing wrong, I need this to work for a project of mine