Skip to content

Commit 95b42f4

Browse files
author
Leszek Wiesner
committed
Joystream#1752 review fixes
1 parent 4ff8242 commit 95b42f4

11 files changed

Lines changed: 182 additions & 803 deletions

smart-contracts/contracts/ContentDirectory.sol

Lines changed: 92 additions & 82 deletions
Large diffs are not rendered by default.

smart-contracts/contracts/bridge/ContentWorkingGroupBridge.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import "./auth.sol";
55

66
contract ContentWorkingGroupBridge is RuntimeManageable {
77
// A map of curatorId => evmAddress(roleKey)
8-
mapping(uint64 => address) private addressByCuratorId;
8+
mapping(uint256 => address) private addressByCuratorId;
99

1010
// evmAddress(roleKey) of current lead
1111
address public currentLeadAddress;
@@ -15,7 +15,7 @@ contract ContentWorkingGroupBridge is RuntimeManageable {
1515

1616
constructor(RuntimeAddressProvider _provider) public RuntimeManageable(_provider) {}
1717

18-
function setCuratorAddress(uint64 _curatorId, address _address) public onlyRuntime {
18+
function setCuratorAddress(uint256 _curatorId, address _address) public onlyRuntime {
1919
addressByCuratorId[_curatorId] = _address;
2020
}
2121

@@ -27,11 +27,11 @@ contract ContentWorkingGroupBridge is RuntimeManageable {
2727
isLeadActive = _status;
2828
}
2929

30-
function isCurator(address _address, uint64 _curatorId) public view returns (bool) {
30+
function isCurator(address _address, uint256 _curatorId) public view returns (bool) {
3131
return (curatorExists(_curatorId) && addressByCuratorId[_curatorId] == _address);
3232
}
3333

34-
function curatorExists(uint64 _curatorId) public view returns (bool) {
34+
function curatorExists(uint256 _curatorId) public view returns (bool) {
3535
return addressByCuratorId[_curatorId] != address(0);
3636
}
3737

smart-contracts/contracts/bridge/MembershipBridge.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ pragma solidity ^0.6.0;
44
import "./auth.sol";
55

66
contract MembershipBridge is RuntimeManageable {
7-
mapping(uint64 => address) private controllerAddressByMemberId;
7+
mapping(uint256 => address) private controllerAddressByMemberId;
88

99
constructor(RuntimeAddressProvider _provider) public RuntimeManageable(_provider) {}
1010

11-
function setMemberAddress(uint64 _memberId, address _address) public onlyRuntime {
11+
function setMemberAddress(uint256 _memberId, address _address) public onlyRuntime {
1212
controllerAddressByMemberId[_memberId] = _address;
1313
}
1414

15-
function isMemberController(address _address, uint64 _memberId) public view returns (bool) {
15+
function isMemberController(address _address, uint256 _memberId) public view returns (bool) {
1616
return (memberExists(_memberId) && controllerAddressByMemberId[_memberId] == _address);
1717
}
1818

19-
function memberExists(uint64 _memberId) public view returns (bool) {
19+
function memberExists(uint256 _memberId) public view returns (bool) {
2020
return controllerAddressByMemberId[_memberId] != address(0);
2121
}
2222
}

smart-contracts/contracts/lib/SafeMath16.sol

Lines changed: 0 additions & 158 deletions
This file was deleted.

smart-contracts/contracts/lib/SafeMath32.sol

Lines changed: 0 additions & 158 deletions
This file was deleted.

0 commit comments

Comments
 (0)