From 7b7063e1d279acce0e2935bab85dcb3ac7c4bce1 Mon Sep 17 00:00:00 2001 From: AlienTornadosaurusHex <> Date: Mon, 22 May 2023 18:28:08 +0000 Subject: [PATCH] Update README and naming Signed-off-by: AlienTornadosaurusHex <> --- README.md | 6 +++++- contracts/v4-patch/PatchProposal.sol | 10 +++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 78a39d8..bdb431d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Governance upgrade to patch exploit vulnerability +# Governance upgrade to patch exploit vulnerability The contracts can be currently found here: @@ -7,6 +7,10 @@ The contracts can be currently found here: Inlined version of the `RelayerRegistry` and `TornadoStakingRewards` are also used. Check the `diffs` folder to see how much they deviate from the `relayer-registry` repository reconstruction. VSC will possibly show red as "added". +For testing resistance against metamorphic contracts, we use the contracts provided by: https://github.com/0age/metamorphic.git + +The rest of the Tornado Governance README follows below. + # Tornado governance [![build status](https://github.com/tornadocash/tornado-governance/actions/workflows/build.yml/badge.svg)](https://github.com/tornadocash/tornado-governance/actions/workflows/build.yml) [![Coverage Status](https://coveralls.io/repos/github/tornadocash/tornado-governance/badge.svg?branch=master)](https://coveralls.io/github/tornadocash/tornado-governance?branch=master) ## Description diff --git a/contracts/v4-patch/PatchProposal.sol b/contracts/v4-patch/PatchProposal.sol index 657c6f6..0e9202f 100644 --- a/contracts/v4-patch/PatchProposal.sol +++ b/contracts/v4-patch/PatchProposal.sol @@ -48,10 +48,10 @@ contract PatchProposal { IERC20 public constant TORN = IERC20(0x77777FeDdddFfC19Ff86DB637967013e6C6A116C); - ProposalContractsFactory public immutable proposalContractFactory; + ProposalContractsFactory public immutable proposalContractsFactory; - constructor(address _proposalContractFactory) public { - proposalContractFactory = ProposalContractsFactory(_proposalContractFactory); + constructor(address _proposalContractsFactory) public { + proposalContractsFactory = ProposalContractsFactory(_proposalContractsFactory); } // Aight lets do this sirs @@ -71,11 +71,11 @@ contract PatchProposal { // And create a new staking contract TornadoStakingRewards newStaking = TornadoStakingRewards( - proposalContractFactory.createStakingRewards(address(governance), address(TORN), registry) + proposalContractsFactory.createStakingRewards(address(governance), address(TORN), registry) ); // And a new registry - address newRegistryAddress = proposalContractFactory.createRegistryContract( + address newRegistryAddress = proposalContractsFactory.createRegistryContract( address(TORN), address(governance), ensAddress,