From 715b95d2c83236b7a02fe545ae38704348325a16 Mon Sep 17 00:00:00 2001 From: r4bbit <445106+0x-r4bbit@users.noreply.github.com> Date: Thu, 5 Oct 2023 11:54:40 +0200 Subject: [PATCH] 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. --- contracts/SNTPlaceHolder.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/SNTPlaceHolder.sol b/contracts/SNTPlaceHolder.sol index 41bcafe..81a90dc 100644 --- a/contracts/SNTPlaceHolder.sol +++ b/contracts/SNTPlaceHolder.sol @@ -60,12 +60,12 @@ contract SNTPlaceHolder is TokenController, Ownable2Step { function onApprove(address, address, uint256) public pure override returns (bool) { return true; } - + /// @notice This method can be used by the controller to extract mistakenly /// sent tokens to this contract. /// @param _token The address of the token contract that you want to recover /// 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)) { payable(owner).transfer(address(this).balance); return;