Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
geoff-vball committed Jan 17, 2024
1 parent fde80ba commit 697bb38
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vms/evm/subscriber.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ func (s *subscriber) NewWarpLogInfo(log types.Log) (*vmtypes.WarpLogInfo, error)
}

return &vmtypes.WarpLogInfo{
// BytesToAddress takes the last 20 bytes of the byte array if it is longer than 20 bytes
SourceAddress: common.BytesToAddress(log.Topics[1][:]),
SourceTxID: log.TxHash[:],
UnsignedMsgBytes: log.Data,
Expand Down

0 comments on commit 697bb38

Please sign in to comment.