Skip to content

Commit

Permalink
Careful side oracle initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
k1rill-fedoseev committed Nov 26, 2019
1 parent 4487ad9 commit 7e4a58f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ethereum-testnet/side-oracle/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ async function initialize() {
sideProvider = new ethers.providers.JsonRpcProvider(SIDE_RPC_URL)
homeProvider = new ethers.providers.JsonRpcProvider(HOME_RPC_URL)

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)
Expand Down

0 comments on commit 7e4a58f

Please sign in to comment.