Skip to content

fields["logs"] incorrectly set #24368

@nuliknol

Description

@nuliknol

isn't this a bug?

internal/ethapi/api.go , line 1660

    if receipt.Logs == nil {
        fields["logs"] = [][]*types.Log{}
    }  

the fields["logs"] must be of type []*types.Log[], not [][]*types.Log , i.e. it must be single array, not double array:

as in receipt.go:

 type Receipt struct {
....
    Logs              []*Log `json:"logs"              gencodec:"required"`
....
}

this is in 1.10.15 (released code tarball)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions