Fixed side oracle
This commit is contained in:
parent
de075e3f41
commit
410f6f6eb3
|
@ -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.
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue