Skip to content

Commit 434f46d

Browse files
authored
Problem: unnecessary length check in logsFromTxResponse (#580)
1 parent 4ca6d42 commit 434f46d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

x/evm/types/utils.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,6 @@ func DecodeTxResponses(in []byte) ([]*MsgEthereumTxResponse, error) {
7676
}
7777

7878
func logsFromTxResponse(dst []*ethtypes.Log, rsp *MsgEthereumTxResponse, blockNumber uint64) []*ethtypes.Log {
79-
if len(rsp.Logs) == 0 {
80-
return dst
81-
}
82-
8379
if dst == nil {
8480
dst = make([]*ethtypes.Log, 0, len(rsp.Logs))
8581
}

0 commit comments

Comments
 (0)