Skip to content

Commit

Permalink
fix depoly factory
Browse files Browse the repository at this point in the history
  • Loading branch information
Barichek committed Nov 1, 2021
1 parent 56184cd commit b979c07
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contracts/contracts/DeployFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import "./ZkSync.sol";
import "./Verifier.sol";
import "./TokenInit.sol";
import "./AdditionalZkSync.sol";
import "./ZkSync.sol";

contract DeployFactory is TokenDeployInit {
// Why do we deploy contracts in the constructor?
Expand Down Expand Up @@ -40,6 +41,8 @@ contract DeployFactory is TokenDeployInit {
require(_governor != address(0), "governor check");
require(_feeAccountAddress != address(0), "fee acc address check");

ZkSync(_zkSyncTarget).initialize(abi.encode(address(0), address(0), address(0), bytes32(0)));

deployProxyContracts(_govTarget, _verifierTarget, _zkSyncTarget, _genesisRoot, _firstValidator, _governor);

selfdestruct(msg.sender);
Expand Down

0 comments on commit b979c07

Please sign in to comment.