Skip to content

Commit

Permalink
initialize dataapi geth client with address
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-shim committed May 10, 2024
1 parent 2988edc commit ce9b92b
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 ce9b92b

Please sign in to comment.