Skip to content

Commit

Permalink
Fix stupid mistake in ContributionRewardExt (#434)
Browse files Browse the repository at this point in the history
* Fix stupid mistake in ContributionRewardExt

* Bump version
  • Loading branch information
ben-kaufman authored and orenyodfat committed Dec 22, 2019
1 parent 6cd8fc1 commit d18508d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/mappings/Controller/mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d18508d

Please sign in to comment.