Merge pull request #13 from logos-co:3esmit/issue8

Ownership cannot be revoked/petrified
This commit is contained in:
Ricardo Guilherme Schmidt 2023-10-03 11:38:44 -03:00 committed by GitHub
commit 6dc3fd00f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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