From 617152a9033374b05d13d12d1faf37f939e0894f Mon Sep 17 00:00:00 2001 From: Vadim Date: Tue, 24 Mar 2020 21:42:28 +0300 Subject: [PATCH] Set exact repo tree for xDai since poa-chain-spec/contracts.json changed --- src/contracts/helpers.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/contracts/helpers.js b/src/contracts/helpers.js index 4815e69..610786f 100644 --- a/src/contracts/helpers.js +++ b/src/contracts/helpers.js @@ -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] }`