From e641366b624c5429628a1afc4da47eafa44bc19e Mon Sep 17 00:00:00 2001 From: StefanIliev545 Date: Fri, 24 Nov 2023 14:40:15 +0200 Subject: [PATCH] Fix for sim tests. --- integration/simulation/network/geth_utils.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/integration/simulation/network/geth_utils.go b/integration/simulation/network/geth_utils.go index 4ab51389a7..aa521d1b75 100644 --- a/integration/simulation/network/geth_utils.go +++ b/integration/simulation/network/geth_utils.go @@ -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)