mirror of
https://github.com/th30d4y/OpenLearnX.git
synced 2026-05-26 19:26:33 +00:00
Fix .gitignore: stop tracking ignored files
This commit is contained in:
+30
@@ -0,0 +1,30 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts v4.4.1 (token/ERC777/presets/ERC777PresetFixedSupply.sol)
|
||||
pragma solidity ^0.8.0;
|
||||
|
||||
import "../ERC777.sol";
|
||||
|
||||
/**
|
||||
* @dev {ERC777} token, including:
|
||||
*
|
||||
* - Preminted initial supply
|
||||
* - No access control mechanism (for minting/pausing) and hence no governance
|
||||
*
|
||||
* _Available since v3.4._
|
||||
*/
|
||||
contract ERC777PresetFixedSupply is ERC777 {
|
||||
/**
|
||||
* @dev Mints `initialSupply` amount of token and transfers them to `owner`.
|
||||
*
|
||||
* See {ERC777-constructor}.
|
||||
*/
|
||||
constructor(
|
||||
string memory name,
|
||||
string memory symbol,
|
||||
address[] memory defaultOperators,
|
||||
uint256 initialSupply,
|
||||
address owner
|
||||
) ERC777(name, symbol, defaultOperators) {
|
||||
_mint(owner, initialSupply, "", "");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user