From b323c590d5abbdbe0eabe93108c9b540afc53271 Mon Sep 17 00:00:00 2001 From: Neeraj Kashyap Date: Sat, 18 Dec 2021 12:10:28 -0800 Subject: [PATCH] Removed "getController" method from LibERC20 It is useless. --- contracts/moonstream/LibERC20.sol | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/contracts/moonstream/LibERC20.sol b/contracts/moonstream/LibERC20.sol index ac195a3..d232e3e 100644 --- a/contracts/moonstream/LibERC20.sol +++ b/contracts/moonstream/LibERC20.sol @@ -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");