Ownership cannot be revoked/petrified

Fixes #8
This commit is contained in:
Ricardo Guilherme Schmidt 2023-10-03 11:38:25 -03:00
parent 93bcf1c5ed
commit 54f614f843
1 changed files with 3 additions and 3 deletions

View File

@ -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