From a0302559b1665ed025ac8f046ea1b923fe83aed5 Mon Sep 17 00:00:00 2001 From: Ihor Oleksiienko Date: Wed, 3 Jul 2024 18:33:20 +0300 Subject: [PATCH] remove redundant functions --- contracts/BRLCTokenBridgeable.sol | 2 +- contracts/base/CWToken.sol | 2 +- contracts/base/ERC20Freezable.sol | 7 ------- contracts/base/ERC20Mintable.sol | 7 ------- 4 files changed, 2 insertions(+), 16 deletions(-) diff --git a/contracts/BRLCTokenBridgeable.sol b/contracts/BRLCTokenBridgeable.sol index de71266b..060fc439 100644 --- a/contracts/BRLCTokenBridgeable.sol +++ b/contracts/BRLCTokenBridgeable.sol @@ -92,7 +92,7 @@ contract BRLCTokenBridgeable is ERC20Base, ERC20Bridgeable, ERC20Freezable { address from, address to, uint256 amount - ) internal virtual override(ERC20Base, ERC20Freezable) { + ) internal virtual override(ERC20Base) { super._afterTokenTransfer(from, to, amount); } } diff --git a/contracts/base/CWToken.sol b/contracts/base/CWToken.sol index b7ba7050..4fcbb573 100644 --- a/contracts/base/CWToken.sol +++ b/contracts/base/CWToken.sol @@ -121,7 +121,7 @@ contract CWToken is address from, address to, uint256 amount - ) internal virtual override(ERC20Base, ERC20Mintable, ERC20Freezable, ERC20Restrictable, ERC20Hookable) { + ) internal virtual override(ERC20Base, ERC20Restrictable, ERC20Hookable) { super._afterTokenTransfer(from, to, amount); uint256 balanceTotal = balanceOf(from); diff --git a/contracts/base/ERC20Freezable.sol b/contracts/base/ERC20Freezable.sol index 82e43ffd..3d7bed68 100644 --- a/contracts/base/ERC20Freezable.sol +++ b/contracts/base/ERC20Freezable.sol @@ -131,13 +131,6 @@ abstract contract ERC20Freezable is ERC20Base, IERC20Freezable { return balanceOfFrozen(account); } - /** - * @inheritdoc ERC20Base - */ - function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual override { - super._afterTokenTransfer(from, to, amount); - } - /** * @dev This empty reserved space is put in place to allow future versions * to add new variables without shifting down storage in the inheritance chain diff --git a/contracts/base/ERC20Mintable.sol b/contracts/base/ERC20Mintable.sol index a16f4197..8d98a26c 100644 --- a/contracts/base/ERC20Mintable.sol +++ b/contracts/base/ERC20Mintable.sol @@ -415,13 +415,6 @@ abstract contract ERC20Mintable is ERC20Base, IERC20Mintable { return true; } - /** - * @inheritdoc ERC20Base - */ - function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual override { - super._afterTokenTransfer(from, to, amount); - } - function _getExtendedStorageSlot() internal pure returns (ExtendedStorageSlot storage r) { /// @solidity memory-safe-assembly assembly {