Skip to content

Commit

Permalink
remove redundant functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ihoroleksiienko committed Jul 3, 2024
1 parent ba170a1 commit a030255
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 16 deletions.
2 changes: 1 addition & 1 deletion contracts/BRLCTokenBridgeable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
2 changes: 1 addition & 1 deletion contracts/base/CWToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
7 changes: 0 additions & 7 deletions contracts/base/ERC20Freezable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 0 additions & 7 deletions contracts/base/ERC20Mintable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a030255

Please sign in to comment.