Skip to content

Commit

Permalink
refactor: update getTxRecipient func
Browse files Browse the repository at this point in the history
  • Loading branch information
Monika-Bitfly committed Feb 5, 2025
1 parent 353a2f8 commit 6e067ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/pkg/executionlayer/transformer.go
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ func getLogTopics(log *types.Eth1Log) []common.Hash {
func getTxRecipient(tx *types.Eth1Transaction) ([]byte, bool) {
to := tx.GetTo()
isContract := false
if !bytes.Equal(tx.GetContractAddress(), common.Address{}.Bytes()) {
if tx.GetContractAddress() != nil && !bytes.Equal(tx.GetContractAddress(), common.Address{}.Bytes()) {
to = tx.GetContractAddress()
isContract = true
}
Expand Down

0 comments on commit 6e067ee

Please sign in to comment.