Skip to content

Commit 059abe4

Browse files
committed
Rename onlyExtension modifier to be more accurate
1 parent a92b026 commit 059abe4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

contracts/colony/ColonyFunding.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ import "./ColonyStorage.sol";
2323

2424

2525
contract ColonyFunding is ColonyStorage, PatriciaTreeProofs { // ignore-swc-123
26-
function lockToken() public stoppable onlyExtension returns (uint256) {
26+
function lockToken() public stoppable onlyOwnExtension returns (uint256) {
2727
uint256 lockId = ITokenLocking(tokenLockingAddress).lockToken(token);
2828
tokenLocks[msg.sender][lockId] = true;
2929
return lockId;
3030
}
3131

32-
function unlockTokenForUser(address _user, uint256 _lockId) public stoppable onlyExtension {
32+
function unlockTokenForUser(address _user, uint256 _lockId) public stoppable onlyOwnExtension {
3333
require(tokenLocks[msg.sender][_lockId], "colony-bad-lock-id");
3434
ITokenLocking(tokenLockingAddress).unlockTokenForUser(token, _user, _lockId);
3535
}

contracts/colony/ColonyStorage.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ contract ColonyStorage is CommonStorage, ColonyDataTypes, ColonyNetworkDataTypes
238238
_;
239239
}
240240

241-
modifier onlyExtension() {
241+
modifier onlyOwnExtension() {
242242
require(isOwnExtension(msg.sender), "colony-must-be-extension");
243243
_;
244244
}

0 commit comments

Comments
 (0)