Skip to content

Commit

Permalink
CounterApp.sol -> CourtWrapper.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
vporton committed Jan 6, 2020
1 parent 374f87f commit 99defa2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion arapp.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
"network": "mainnet"
}
},
"path": "contracts/CounterApp.sol"
"path": "contracts/CourtWrapper.sol"
}
2 changes: 1 addition & 1 deletion contracts/CounterApp.sol → contracts/CourtWrapper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import "@aragon/os/contracts/apps/AragonApp.sol";
import "@aragon/os/contracts/lib/math/SafeMath.sol";


contract CounterApp is AragonApp {
contract CourtWrapper is AragonApp {
using SafeMath for uint256;

/// Events
Expand Down
18 changes: 9 additions & 9 deletions contracts/Template.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pragma solidity 0.4.24;
import "@aragon/templates-shared/contracts/TokenCache.sol";
import "@aragon/templates-shared/contracts/BaseTemplate.sol";

import "./CounterApp.sol";
import "./CourtWrapper.sol";


contract Template is BaseTemplate, TokenCache {
Expand Down Expand Up @@ -124,23 +124,23 @@ contract Template is BaseTemplate, TokenCache {
)
internal
{
CounterApp app = _installCounterApp(_dao);
_createCounterAppPermissions(_acl, app, _voting, _voting);
CourtWrapper app = _installCourtWrapper(_dao);
_createCourtWrapperPermissions(_acl, app, _voting, _voting);
}

function _installCounterApp(
function _installCourtWrapper(
Kernel _dao
)
internal returns (CounterApp)
internal returns (CourtWrapper)
{
bytes32 _appId = keccak256(abi.encodePacked(apmNamehash("open"), keccak256("placeholder-app-name")));
bytes memory initializeData = abi.encodeWithSelector(CounterApp(0).initialize.selector);
return CounterApp(_installDefaultApp(_dao, _appId, initializeData));
bytes memory initializeData = abi.encodeWithSelector(CourtWrapper(0).initialize.selector);
return CourtWrapper(_installDefaultApp(_dao, _appId, initializeData));
}

function _createCounterAppPermissions(
function _createCourtWrapperPermissions(
ACL _acl,
CounterApp _app,
CourtWrapper _app,
address _grantee,
address _manager
)
Expand Down

0 comments on commit 99defa2

Please sign in to comment.