Skip to content

Commit 94139b8

Browse files
authored
Merge branch 'dev-3.0.0' into gtm-logic-refactor
2 parents 108015d + b205061 commit 94139b8

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

contracts/tokens/SecurityToken.sol

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -577,10 +577,6 @@ contract SecurityToken is ERC20, ERC20Detailed, Ownable, ReentrancyGuard, Securi
577577
*/
578578
function setController(address _controller) public onlyOwner {
579579
require(_isControllable());
580-
// Below condition is to restrict the owner/issuer to become the controller(In an ideal world).
581-
// But for non ideal case issuer could set another address which is not the owner of the token
582-
// but issuer holds its private key.
583-
require(_controller != msg.sender);
584580
emit SetController(controller, _controller);
585581
controller = _controller;
586582
}

test/c_checkpoints.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,7 @@ contract("Checkpoints", async function(accounts) {
140140
assert.equal(web3.utils.toAscii(log.args._name).replace(/\u0000/g, ""), "GeneralTransferManager");
141141
});
142142

143-
it("Should set controller to token owner --failed not allowed", async () => {
144-
await catchRevert(
145-
I_SecurityToken.setController(token_owner, { from: token_owner })
146-
);
147-
});
148-
149-
it("Should set the tcontroller", async() => {
143+
it("Should set the controller", async() => {
150144
await I_SecurityToken.setController(account_controller, {from: token_owner});
151145
})
152146

0 commit comments

Comments
 (0)