Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dxdao #458

Merged
merged 2 commits into from
Jan 28, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions ops/generate-daos-subgraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,14 @@ function daoYaml(contract, contractAddress, arcVersion) {
};
}
//this is temporary workaround (not nice) patch to solve an issue with multiple contract versions
//in genesis alpha dao
//in genesis alpha dao and dxdao
let _abiVersion = arcVersion;
if ((contractAddress === "0x211b9Bd0bCCACa64fB1d43093C75269bb84B3Be6") &&
if (((contractAddress === "0x211b9Bd0bCCACa64fB1d43093C75269bb84B3Be6") ||
(contractAddress === "0x9f828AC3baA9003e8a4e0b24bcaE7b027B6740b0")) &&
(contractName === "GenericScheme")) {
_abiVersion = "0.0.1-rc.33";
}

return {name: contractName,
file: path.resolve(`./abis/${_abiVersion}/${contractName}.json`)
};
Expand Down