Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
77452aca
Commit
77452aca
authored
Jun 15, 2023
by
Andreas Bigger
Committed by
Mark Tyneway
Jun 16, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initialize dgf in constructor
parent
ae8a3a74
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
DisputeGameFactory.sol
...ontracts-bedrock/contracts/dispute/DisputeGameFactory.sol
+5
-5
DisputeGameFactory.t.sol
...contracts-bedrock/contracts/test/DisputeGameFactory.t.sol
+1
-1
No files found.
packages/contracts-bedrock/contracts/dispute/DisputeGameFactory.sol
View file @
77452aca
...
...
@@ -43,18 +43,18 @@ contract DisputeGameFactory is OwnableUpgradeable, IDisputeGameFactory, IVersion
IDisputeGame[] public disputeGameList;
/**
* @notice Constructs a new DisputeGameFactory contract.
Set the owner
*
to `address(0)` to prevent accidental usage of the implementation
.
* @notice Constructs a new DisputeGameFactory contract.
*
@param _owner The owner of the contract
.
*/
constructor() OwnableUpgradeable() {
_transferOwnership(address(0)
);
constructor(
address _owner
) OwnableUpgradeable() {
initialize(_owner
);
}
/**
* @notice Initializes the contract.
* @param _owner The owner of the contract.
*/
function initialize(address _owner)
external
initializer {
function initialize(address _owner)
public
initializer {
__Ownable_init();
_transferOwnership(_owner);
}
...
...
packages/contracts-bedrock/contracts/test/DisputeGameFactory.t.sol
View file @
77452aca
...
...
@@ -22,7 +22,7 @@ contract DisputeGameFactory_Initializer is Test {
function setUp() public virtual {
Proxy proxy = new Proxy(address(this));
DisputeGameFactory impl = new DisputeGameFactory();
DisputeGameFactory impl = new DisputeGameFactory(
address(this)
);
proxy.upgradeToAndCall({
_implementation: address(impl),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment