Skip to content

Commit

Permalink
[dataapi] Initialize geth client with address (#555)
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-shim authored May 11, 2024
1 parent 2988edc commit 6f8a083
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion disperser/cmd/dataapi/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,12 @@ func RunDataApi(ctx *cli.Context) error {
return err
}

client, err := geth.NewMultiHomingClient(config.EthClientConfig, gethcommon.HexToAddress(config.FireblocksConfig.WalletAddress), logger)
sender := gethcommon.Address{}
if !config.FireblocksConfig.Disable {
sender = gethcommon.HexToAddress(config.FireblocksConfig.WalletAddress)
}

client, err := geth.NewMultiHomingClient(config.EthClientConfig, sender, logger)
if err != nil {
return err
}
Expand Down

0 comments on commit 6f8a083

Please sign in to comment.