kopia lustrzana https://github.com/bugout-dev/dao
rodzic
2c1140545c
commit
b323c590d5
|
@ -1,4 +1,12 @@
|
|||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/**
|
||||
* Authors: Moonstream Engineering (engineering@moonstream.to)
|
||||
* GitHub: https://github.com/bugout-dev/dao
|
||||
*
|
||||
* Common storage structure and internal methods for Moonstream DAO ERC20 tokens.
|
||||
*/
|
||||
|
||||
pragma solidity ^0.8.0;
|
||||
|
||||
library LibERC20 {
|
||||
|
@ -33,14 +41,6 @@ library LibERC20 {
|
|||
emit ControlTransferred(previousController, newController);
|
||||
}
|
||||
|
||||
function getController()
|
||||
internal
|
||||
view
|
||||
returns (address contractController)
|
||||
{
|
||||
contractController = erc20Storage().controller;
|
||||
}
|
||||
|
||||
function enforceIsController() internal view {
|
||||
ERC20Storage storage es = erc20Storage();
|
||||
require(msg.sender == es.controller, "LibERC20: Must be controller");
|
||||
|
|
Ładowanie…
Reference in New Issue