Skip to content

Commit

Permalink
Fix for sim tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanIliev545 committed Nov 24, 2023
1 parent f6b0b5e commit e641366
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions integration/simulation/network/geth_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,12 @@ func DeployObscuroNetworkContracts(client ethadapter.EthClient, wallets *params.
return nil, fmt.Errorf("failed to instantiate management contract. Cause: %w", err)
}

opts := bind.NewKeyedTransactor(wallets.MCOwnerWallet.PrivateKey())
_, err = managementContract.Initialize(opts)
if err != nil {
return nil, fmt.Errorf("Unable to initialize management contract!")
}

l1BusAddress, err := managementContract.MessageBus(&bind.CallOpts{})
if err != nil {
return nil, fmt.Errorf("failed to fetch MessageBus address. Cause: %w", err)
Expand Down

0 comments on commit e641366

Please sign in to comment.