Skip to content

Commit

Permalink
Minor Fix (#392)
Browse files Browse the repository at this point in the history
* fix

* initialize needed entities
  • Loading branch information
dOrgJelli authored and orenyodfat committed Nov 15, 2019
1 parent 5db8c7f commit 5ffcf49
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/domain/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ export function handleRegisterScheme(avatar: Address,
);
if (isFirstRegister == null) {
setContractsInfo();
setTemplatesInfo();
let dao = daoModule.insertNewDAO(avatar, nativeTokenAddress , nativeReputationAddress);
insertToken(hexToAddress(dao.nativeToken), avatar.toHex());
insertReputation(
Expand Down
10 changes: 8 additions & 2 deletions src/mappings/DAOTracker/mapping.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import { Address } from '@graphprotocol/graph-ts';
import { setBlacklistedDAOs } from '../../contractsInfo';
import {
setBlacklistedDAOs,
setContractsInfo,
setTemplatesInfo,
} from '../../contractsInfo';
import {
DAOTracker,
TrackDAO,
Expand All @@ -22,6 +26,8 @@ export function getDAOTrackerContract(address: Address): DAOTrackerContract {
daoTracker.owner = daoTrackerSC.owner();
daoTracker.save();
setBlacklistedDAOs();
setContractsInfo();
setTemplatesInfo();
}
return daoTracker;
}
Expand Down Expand Up @@ -68,7 +74,7 @@ export function handleTrackDAO(event: TrackDAO): void {

let universalController = UControllerOrganization.load(controller.toHex()) != null;

if (universalController) {
if (universalController === false) {
missingTemplate = missingTemplate || controllerTemplate == null;
}

Expand Down

0 comments on commit 5ffcf49

Please sign in to comment.