Commit a5f6b50c authored by Andreas Bigger's avatar Andreas Bigger Committed by Mark Tyneway

zero address dgf in constructor

parent 77452aca
...@@ -44,10 +44,9 @@ contract DisputeGameFactory is OwnableUpgradeable, IDisputeGameFactory, IVersion ...@@ -44,10 +44,9 @@ contract DisputeGameFactory is OwnableUpgradeable, IDisputeGameFactory, IVersion
/** /**
* @notice Constructs a new DisputeGameFactory contract. * @notice Constructs a new DisputeGameFactory contract.
* @param _owner The owner of the contract.
*/ */
constructor(address _owner) OwnableUpgradeable() { constructor() OwnableUpgradeable() {
initialize(_owner); initialize(address(0));
} }
/** /**
......
...@@ -22,7 +22,7 @@ contract DisputeGameFactory_Initializer is Test { ...@@ -22,7 +22,7 @@ contract DisputeGameFactory_Initializer is Test {
function setUp() public virtual { function setUp() public virtual {
Proxy proxy = new Proxy(address(this)); Proxy proxy = new Proxy(address(this));
DisputeGameFactory impl = new DisputeGameFactory(address(this)); DisputeGameFactory impl = new DisputeGameFactory();
proxy.upgradeToAndCall({ proxy.upgradeToAndCall({
_implementation: address(impl), _implementation: address(impl),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment