Skip to content

Commit

Permalink
Fixed linter issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanIliev545 committed Nov 24, 2023
1 parent e641366 commit d824fbd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions integration/simulation/network/geth_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,14 @@ 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())
opts, err := bind.NewKeyedTransactorWithChainID(wallets.MCOwnerWallet.PrivateKey(), wallets.MCOwnerWallet.ChainID())
if err != nil {
return nil, fmt.Errorf("unable to create a keyed transactor for initializing the management contract. Cause: %w", err)
}

_, err = managementContract.Initialize(opts)
if err != nil {
return nil, fmt.Errorf("Unable to initialize management contract!")
return nil, fmt.Errorf("unable to initialize management contract. Cause: %w", err)
}

l1BusAddress, err := managementContract.MessageBus(&bind.CallOpts{})
Expand Down

0 comments on commit d824fbd

Please sign in to comment.