Merge pull request #217 from poanetwork/dai-branch-fix

(Fix) Set exact repo tree for xDai since poa-chain-spec/contracts.json changed
This commit is contained in:
Victor Baranov 2020-03-24 21:51:57 +03:00 committed by GitHub
commit 7769fd21cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -3,6 +3,9 @@ import messages from '../utils/messages'
import swal from 'sweetalert2'
function addressesURL(branch) {
if (branch === constants.DAI) {
branch = 'ce2c77256f0d37fc48baa9b6cab806261d034785'
}
const URL = `https://raw.githubusercontent.com/${constants.organization}/${constants.repoName}/${branch}/${
constants.addressesSourceFile
}`
@ -10,6 +13,9 @@ function addressesURL(branch) {
}
function ABIURL(branch, contract) {
if (branch === constants.DAI) {
branch = 'ce2c77256f0d37fc48baa9b6cab806261d034785'
}
const URL = `https://raw.githubusercontent.com/${constants.organization}/${constants.repoName}/${branch}/abis/${
constants.ABIsSources[contract]
}`