Skip to content

Commit 1050a3b

Browse files
author
Yash Agrawal
committed
feat: remove _proxyAdmin from SBT
1 parent 2670157 commit 1050a3b

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

contracts/SBT.sol

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ pragma solidity =0.8.9;
33

44
import {Strings} from "@openzeppelin/contracts/utils/Strings.sol";
55
import {Base64} from "@devprotocol/util-contracts/contracts/utils/Base64.sol";
6-
import {ProxyAdmin} from "@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol";
76
import {ERC721EnumerableUpgradeable} from "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721EnumerableUpgradeable.sol";
87

98
import {ISBT} from "./interfaces/ISBT.sol";
@@ -12,8 +11,6 @@ contract SBT is ISBT, ERC721EnumerableUpgradeable {
1211
using Base64 for bytes;
1312
using Strings for uint256;
1413

15-
/// @dev Account with proxy adming rights.
16-
address private _proxyAdmin;
1714
/// @dev EOA with rights to allow(add)/disallow(remove) minter.
1815
address private _minterUpdater;
1916

@@ -70,12 +67,6 @@ contract SBT is ISBT, ERC721EnumerableUpgradeable {
7067
}
7168
}
7269

73-
function setProxyAdmin(address proxyAdmin) external {
74-
require(_proxyAdmin == address(0), "Already set");
75-
_proxyAdmin = proxyAdmin;
76-
emit SetProxyAdmin(proxyAdmin);
77-
}
78-
7970
function addMinter(address minter) external override onlyMinterUpdater {
8071
_minters[minter] = true;
8172
emit MinterAdded(minter);
@@ -239,10 +230,6 @@ contract SBT is ISBT, ERC721EnumerableUpgradeable {
239230
return _sbtdata[tokenId];
240231
}
241232

242-
function owner() external view returns (address) {
243-
return ProxyAdmin(_proxyAdmin).owner();
244-
}
245-
246233
function tokensOfOwner(
247234
address tokenOwner
248235
) external view override returns (uint256[] memory) {

0 commit comments

Comments
 (0)