35 lines
1017 B
Solidity
35 lines
1017 B
Solidity
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.8.0;
|
|
|
|
import "../token/ERC20/extensions/ERC20CappedUpgradeable.sol";
|
|
import "../proxy/utils/Initializable.sol";
|
|
|
|
contract ERC20CappedMockUpgradeable is Initializable, ERC20CappedUpgradeable {
|
|
function __ERC20CappedMock_init(
|
|
string memory name,
|
|
string memory symbol,
|
|
uint256 cap
|
|
) internal onlyInitializing {
|
|
__ERC20_init_unchained(name, symbol);
|
|
__ERC20Capped_init_unchained(cap);
|
|
}
|
|
|
|
function __ERC20CappedMock_init_unchained(
|
|
string memory,
|
|
string memory,
|
|
uint256
|
|
) internal onlyInitializing {}
|
|
|
|
function mint(address to, uint256 tokenId) public {
|
|
_mint(to, tokenId);
|
|
}
|
|
|
|
/**
|
|
* @dev This empty reserved space is put in place to allow future versions to add new
|
|
* variables without shifting down storage in the inheritance chain.
|
|
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
|
|
*/
|
|
uint256[50] private __gap;
|
|
}
|