Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
robdefeo committed Feb 16, 2020
1 parent 5975689 commit 6e90088
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/mailchain/internal/settings/blockscout_receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@ func blockscoutReceiverNoAuth(s values.Store) *BlockscoutReceiver {
}

func blockscoutReceiverAny(s values.Store, kind string) *BlockscoutReceiver {
enabledNetworks := []string{"ethereum/" + ethereum.Mainnet}
return &BlockscoutReceiver{
kind: kind,
EnabledProtocolNetworks: values.NewDefaultStringSlice(
enabledNetworks,
[]string{"ethereum/" + ethereum.Mainnet},
s,
"receivers."+kind+".enabled-networks",
),
Expand Down
2 changes: 2 additions & 0 deletions internal/clients/blockscout/receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ func (c APIClient) Receive(ctx context.Context, network string, address []byte)
if ok {
continue
}

txHashes[x.Hash] = true

encryptedTransactionData, err := encoding.DecodeHexZeroX(x.Input)
if err != nil {
continue // invalid data should move to next record
Expand Down
2 changes: 2 additions & 0 deletions internal/clients/etherscan/receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ func (c APIClient) Receive(ctx context.Context, network string, address []byte)
if ok {
continue
}

txHashes[x.Hash] = true

encryptedTransactionData, err := encoding.DecodeHexZeroX(x.Input)
if err != nil {
continue // invalid data should move to next record
Expand Down

0 comments on commit 6e90088

Please sign in to comment.