diff --git a/package-lock.json b/package-lock.json index 039f4978..bb466cce 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@daostack/subgraph", - "version": "0.0.36-4", + "version": "0.0.36-5", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index a0462c74..86e70d62 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@daostack/subgraph", - "version": "0.0.36-4", + "version": "0.0.36-5", "author": "DAOstack (https://www.daostack.io)", "license": "GPL-3.0", "description": "A caching layer for daostack using The Graph", diff --git a/src/mappings/Controller/mapping.ts b/src/mappings/Controller/mapping.ts index e823113b..be969431 100644 --- a/src/mappings/Controller/mapping.ts +++ b/src/mappings/Controller/mapping.ts @@ -315,7 +315,7 @@ export function setContributionRewardExtParams(avatar: Address, rewarder: Address): void { setGPParams(vmAddress, vmParamsHash); let controllerScheme = ControllerScheme.load(crypto.keccak256(concat(avatar, scheme)).toHex()); - let contributionRewardExtParams = new ContributionRewardExtParam(controllerScheme.paramsHash.toHex()); + let contributionRewardExtParams = new ContributionRewardExtParam(scheme.toHex()); contributionRewardExtParams.votingMachine = vmAddress; contributionRewardExtParams.voteParams = vmParamsHash.toHex(); contributionRewardExtParams.rewarder = rewarder;