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:
commit
7769fd21cf
|
@ -3,6 +3,9 @@ import messages from '../utils/messages'
|
||||||
import swal from 'sweetalert2'
|
import swal from 'sweetalert2'
|
||||||
|
|
||||||
function addressesURL(branch) {
|
function addressesURL(branch) {
|
||||||
|
if (branch === constants.DAI) {
|
||||||
|
branch = 'ce2c77256f0d37fc48baa9b6cab806261d034785'
|
||||||
|
}
|
||||||
const URL = `https://raw.githubusercontent.com/${constants.organization}/${constants.repoName}/${branch}/${
|
const URL = `https://raw.githubusercontent.com/${constants.organization}/${constants.repoName}/${branch}/${
|
||||||
constants.addressesSourceFile
|
constants.addressesSourceFile
|
||||||
}`
|
}`
|
||||||
|
@ -10,6 +13,9 @@ function addressesURL(branch) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function ABIURL(branch, contract) {
|
function ABIURL(branch, contract) {
|
||||||
|
if (branch === constants.DAI) {
|
||||||
|
branch = 'ce2c77256f0d37fc48baa9b6cab806261d034785'
|
||||||
|
}
|
||||||
const URL = `https://raw.githubusercontent.com/${constants.organization}/${constants.repoName}/${branch}/abis/${
|
const URL = `https://raw.githubusercontent.com/${constants.organization}/${constants.repoName}/${branch}/abis/${
|
||||||
constants.ABIsSources[contract]
|
constants.ABIsSources[contract]
|
||||||
}`
|
}`
|
||||||
|
|
Loading…
Reference in New Issue