From 54f614f8435e702dd06abc71d53e9641ca028384 Mon Sep 17 00:00:00 2001 From: Ricardo Guilherme Schmidt <3esmit@gmail.com> Date: Tue, 3 Oct 2023 11:38:25 -0300 Subject: [PATCH] Ownership cannot be revoked/petrified Fixes #8 --- contracts/SNTPlaceHolder.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contracts/SNTPlaceHolder.sol b/contracts/SNTPlaceHolder.sol index 6d4dfd3..2fe77b4 100644 --- a/contracts/SNTPlaceHolder.sol +++ b/contracts/SNTPlaceHolder.sol @@ -3,7 +3,7 @@ pragma solidity ^0.8.18; import { TokenController } from "@vacp2p/minime/contracts/TokenController.sol"; import { MiniMeToken } from "@vacp2p/minime/contracts/MiniMeToken.sol"; -import "./Owned.sol"; +import "@openzeppelin/contracts/access/Ownable2Step.sol"; /* Copyright 2017, Jordi Baylina @@ -29,7 +29,7 @@ import "./Owned.sol"; /// The contract allows for SNT transfers and transferFrom and implements the /// logic for transferring control of the token to the network when the offering /// asks it to do so. -contract SNTPlaceHolder is TokenController, Owned { +contract SNTPlaceHolder is TokenController, Ownable2Step { MiniMeToken public snt; constructor(address _owner, address payable _snt) { @@ -61,7 +61,7 @@ contract SNTPlaceHolder is TokenController, Owned { 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