-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add simple registry and move some arguments to registry config
- Loading branch information
Showing
4 changed files
with
116 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.20; | ||
|
||
import { BaseRegistry } from "./BaseRegistry.sol"; | ||
|
||
contract SimpleRegistry is BaseRegistry { | ||
/// @notice Create a new instance of the registry contract | ||
/// @param max The maximum number of projects that can be registered | ||
/// @param url The metadata url | ||
/// @param ownerAddress The owner address | ||
constructor( | ||
uint256 max, | ||
string memory url, | ||
address ownerAddress | ||
) payable BaseRegistry(max, url, ownerAddress) {} | ||
} | ||
Check warning Code scanning / Slither Contracts that lock Ether Medium
Contract locking ether found:
Contract SimpleRegistry has payable functions: - BaseRegistry.constructor(uint256,string,address) - SimpleRegistry.constructor(uint256,string,address) But does not have a function to withdraw the ether |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters