Make inner size before assinging. Closes #615
This commit is contained in:
@ -122,6 +122,7 @@ func cAddress(a []string) []common.Address {
|
|||||||
func cTopics(t [][]string) [][]common.Hash {
|
func cTopics(t [][]string) [][]common.Hash {
|
||||||
topics := make([][]common.Hash, len(t))
|
topics := make([][]common.Hash, len(t))
|
||||||
for i, iv := range t {
|
for i, iv := range t {
|
||||||
|
topics[i] = make([]common.Hash, len(iv))
|
||||||
for j, jv := range iv {
|
for j, jv := range iv {
|
||||||
topics[i][j] = common.HexToHash(jv)
|
topics[i][j] = common.HexToHash(jv)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user