Skip to content

Commit

Permalink
Merge pull request #59 from CoopHive/bug/pk-log
Browse files Browse the repository at this point in the history
star out private key for zerolog
  • Loading branch information
polus-arcticus authored Jun 28, 2024
2 parents 099b806 + c6a643d commit f1cb1ba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/web3/sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,10 @@ func NewContracts(

func NewContractSDK(options Web3Options) (*Web3SDK, error) {
// write to console
log.Debug().Msgf("NewContractSDK: %+v", options)
// filter out private key
optionsCopy := options
optionsCopy.PrivateKey = "********"
log.Debug().Msgf("NewContractSDK: %+v", optionsCopy)
client, err := ethclient.Dial(options.RpcURL)
if err != nil {
return nil, err
Expand Down

0 comments on commit f1cb1ba

Please sign in to comment.