Skip to content

Commit

Permalink
fix test caused by go1.23
Browse files Browse the repository at this point in the history
  • Loading branch information
envestcc committed Dec 24, 2024
1 parent 6c7db62 commit bdd9b61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion action/receipt.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,11 @@ func (log *Log) ConvertToLogPb() *iotextypes.Log {
l := &iotextypes.Log{}
l.ContractAddress = log.Address
l.Topics = [][]byte{}
var shareTopic hash.Hash256
for _, topic := range log.Topics {
shareTopic = topic
if log.NotFixTopicCopyBug {
l.Topics = append(l.Topics, topic[:])
l.Topics = append(l.Topics, shareTopic[:])
} else {
data := make([]byte, len(topic))
copy(data, topic[:])
Expand Down
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module github.com/iotexproject/iotex-core/v2

go 1.22.7

toolchain go1.23.3
go 1.23.3

require (
github.com/agiledragon/gomonkey/v2 v2.11.0
Expand Down

0 comments on commit bdd9b61

Please sign in to comment.