Gents @abcoathup and @Amxx ,
After reviewing Creating Capped ERC20 gives error in contract constructor I adjusted my New Contract Proposal as follows:
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
import "@openzeppelin/contracts/presets/ERC20PresetMinterPauser.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20Capped.sol";
contract FilmVaultToken is ERC20PresetMinterPauser, ERC20Capped {
constructor () ERC20PresetMinterPauser("FilmVault", "FilmVault") ERC20Capped(1000000 * (10 ** uint256(9))) public {
_setupDecimals(9);
}
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override(ERC20PresetMinterPauser, ERC20Capped) {
super._beforeTokenTransfer(from, to, amount);
}
}
Which has been successfully deployed and verified as well as fully tested on Ropsten
Thank you so much guys for all your great work! We will soon be deploying our v2.0 projects on Mainnet by fully leveraging (importing) OpenZeppelin contracts.
g.a.