Skip to content

Commit

Permalink
Update timers
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardonunesp committed Aug 10, 2018
1 parent 08c69e9 commit cb92847
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions transfer_gateway
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function start_dappchain {
./loom reset; ./loom run > /dev/null 2>&1 &
loom_pid=$!
echo $loom_pid > loom.pid
sleep 5
sleep 10
cd ..
else
echo "DAppChain is running"
Expand Down Expand Up @@ -151,7 +151,7 @@ function run_mapping {
echo "Running mapping"
cd transfer-gateway-scripts
node index.js > /dev/null 2>&1 &
sleep 5
sleep 10
cd ..
else
echo "Mapping already ran"
Expand Down
8 changes: 8 additions & 0 deletions webclient/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,21 @@ import DAppChainAccountManager from './dc_managers/dc_account_manager'
import DAppChainCardManager from './dc_managers/dc_card_manager'
import DAppChainGatewayManager from './dc_managers/dc_gateway_manager'
;(async () => {
console.log('Loading ...')
const t = setTimeout(
() => console.log('If this takes too long, please try to reset MetaMask cache'),
5000
)

const ethCardManager = await EthCardManager.createAsync()
const ethAccountManager = await EthAccountManager.createAsync()
const dcAccountManager = await DAppChainAccountManager.createAsync()
const dcCardManager = await DAppChainCardManager.createAsync()
const ethGatewayManager = await EthGatewayManager.createAsync()
const dcGatewayManager = await DAppChainGatewayManager.createAsync()

clearTimeout(t)

const BuildMain = () => (
<Main
ethAccountManager={ethAccountManager}
Expand Down

0 comments on commit cb92847

Please sign in to comment.