tornadocash / tornado-core

Tornado cash. Non-custodial private transactions on Ethereum.
https://tornado.cash
GNU General Public License v3.0
1.48k stars 554 forks source link

Upgrade contracts for Solidity v0.7.6 #89

Closed mirru2532 closed 3 years ago

mirru2532 commented 3 years ago

This commit upgrades the instance contracts to be compatible with Solidity 0.7.6 with minimal changes.

It also adds the hasher's address as part of the migration procedure of the various contracts, due to libraries without logic not being allowed with 0.7.6 (an interface is used in place of it, requiring it to be declared as a state variable).

poma commented 3 years ago

There is already a create2 branch that upgrades solidity version and removes the library