* Moved ERC1820 related contracts out of drafts and into introspection.
* Moved ERC777 related contracts out of drafts and into token.
(cherry picked from commit c794c96617)
26 lines
649 B
Solidity
26 lines
649 B
Solidity
pragma solidity ^0.5.0;
|
|
|
|
import "../token/ERC777/ERC777.sol";
|
|
|
|
contract ERC777Mock is ERC777 {
|
|
constructor(
|
|
address initialHolder,
|
|
uint256 initialBalance,
|
|
string memory name,
|
|
string memory symbol,
|
|
address[] memory defaultOperators
|
|
) public ERC777(name, symbol, defaultOperators) {
|
|
_mint(msg.sender, initialHolder, initialBalance, "", "");
|
|
}
|
|
|
|
function mintInternal (
|
|
address operator,
|
|
address to,
|
|
uint256 amount,
|
|
bytes memory userData,
|
|
bytes memory operatorData
|
|
) public {
|
|
_mint(operator, to, amount, userData, operatorData);
|
|
}
|
|
}
|