Skip to content

Commit 101ea1a

Browse files
committed
Make inner size before assinging. Closes bnb-chain#615
1 parent c8e5d53 commit 101ea1a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎xeth/xeth.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ func cAddress(a []string) []common.Address {
122122
func cTopics(t [][]string) [][]common.Hash {
123123
topics := make([][]common.Hash, len(t))
124124
for i, iv := range t {
125+
topics[i] = make([]common.Hash, len(iv))
125126
for j, jv := range iv {
126127
topics[i][j] = common.HexToHash(jv)
127128
}

0 commit comments

Comments
 (0)