Removed "getController" method from LibERC20

It is useless.
pull/9/head
Neeraj Kashyap 2021-12-18 12:10:28 -08:00
rodzic 2c1140545c
commit b323c590d5
1 zmienionych plików z 8 dodań i 8 usunięć

Wyświetl plik

@ -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");