fix(SNTPlaceHolder): fix incorrect usage of minime token type

The `SNTPlaceholder` uses `MiniMeToken` type in a function even though
only `MiniMeBase` is actually imported.

This commit fixes the function signature so that the code can actually
compile.
This commit is contained in:
r4bbit 2023-10-05 11:54:40 +02:00
parent c8b6f23554
commit 715b95d2c8
1 changed files with 2 additions and 2 deletions

View File

@ -60,12 +60,12 @@ contract SNTPlaceHolder is TokenController, Ownable2Step {
function onApprove(address, address, uint256) public pure override returns (bool) { function onApprove(address, address, uint256) public pure override returns (bool) {
return true; return true;
} }
/// @notice This method can be used by the controller to extract mistakenly /// @notice This method can be used by the controller to extract mistakenly
/// sent tokens to this contract. /// sent tokens to this contract.
/// @param _token The address of the token contract that you want to recover /// @param _token The address of the token contract that you want to recover
/// set to 0 in case you want to extract ether. /// set to 0 in case you want to extract ether.
function claimTokens(MiniMeToken _token) public onlyOwner { function claimTokens(MiniMeBase _token) public onlyOwner {
if (address(_token) == address(0)) { if (address(_token) == address(0)) {
payable(owner).transfer(address(this).balance); payable(owner).transfer(address(this).balance);
return; return;