Skip to content

Commit

Permalink
chore: update variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
zsystm committed Sep 10, 2024
1 parent 6947bce commit f834ae9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions client/x/evmengine/types/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,16 @@ func (l *EVMEvent) Verify() error {
}

// EthLogToEVMEvent converts an Ethereum Log to an EVMEvent.
func EthLogToEVMEvent(l ethtypes.Log) (*EVMEvent, error) {
topics := make([][]byte, 0, len(l.Topics))
for _, t := range l.Topics {
func EthLogToEVMEvent(ethLog ethtypes.Log) (*EVMEvent, error) {
topics := make([][]byte, 0, len(ethLog.Topics))
for _, t := range ethLog.Topics {
topics = append(topics, t.Bytes())
}

evmEvent := &EVMEvent{
Address: l.Address.Bytes(),
Address: ethLog.Address.Bytes(),
Topics: topics,
Data: l.Data,
Data: ethLog.Data,
}
if err := evmEvent.Verify(); err != nil {
return nil, errors.Wrap(err, "verify log")
Expand Down

0 comments on commit f834ae9

Please sign in to comment.