diff --git a/README.md b/README.md index cf14c7f..38efb27 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![CircleCI](https://circleci.com/gh/k1rill-fedoseev/eth-to-bnc-bridge/tree/master.svg?style=svg)](https://circleci.com/gh/k1rill-fedoseev/eth-to-bnc-bridge/tree/master) +[![CircleCI](https://circleci.com/gh/poanetwork/eth-to-bnc-bridge/tree/master.svg?style=svg)](https://circleci.com/gh/poanetwork/eth-to-bnc-bridge/tree/master) ## Ethereum to Binance Chain bridge @@ -21,4 +21,4 @@ Collecting confirmations for the Binance Chain is made in form of mutlisig walle At this version the tool for TSS is used as is. It is assumed that later part of TSS orchestration will be moved to the orchestration contract. So far, the orchestration contract is used as a database to keep data required by TSS parties during the signature generation. -Read [an instruction how to run a demo](DEMO.md) for the bridge. +Read [an instruction how to run a demo](DEMO.md) for the bridge. \ No newline at end of file diff --git a/src/ethereum-testnet/side-oracle/index.js b/src/ethereum-testnet/side-oracle/index.js index 352b35d..64d075b 100644 --- a/src/ethereum-testnet/side-oracle/index.js +++ b/src/ethereum-testnet/side-oracle/index.js @@ -65,18 +65,18 @@ async function initialize() { await sideProvider.getNetwork() await homeProvider.getNetwork() - - homeWallet = new ethers.Wallet(HOME_PRIVATE_KEY, homeProvider) - bridge = new ethers.Contract(HOME_BRIDGE_ADDRESS, bridgeAbi, homeWallet) - sharedDb = new ethers.Contract(SIDE_SHARED_DB_ADDRESS, sharedDbAbi, sideProvider) - - nonce = await homeWallet.getTransactionCount() break } catch (e) { console.log('Cannot create providers') await delay(1000) } } + + homeWallet = new ethers.Wallet(HOME_PRIVATE_KEY, homeProvider) + bridge = new ethers.Contract(HOME_BRIDGE_ADDRESS, bridgeAbi, homeWallet) + sharedDb = new ethers.Contract(SIDE_SHARED_DB_ADDRESS, sharedDbAbi, sideProvider) + + nonce = await homeWallet.getTransactionCount() } async function loop() {