Skip to content
This repository was archived by the owner on Nov 30, 2021. It is now read-only.
This repository was archived by the owner on Nov 30, 2021. It is now read-only.

there are format errors in String() of QueryETHLogs #747

@RevelationOfTuring

Description

@RevelationOfTuring

System info: [Include Ethermint commit, operating system name, and other relevant details]
there are format errors in String() of QueryETHLogs. The result of QueryETHLogs.String() will show the pointer of ethtypes.Log as the member in the slice.

func (q QueryETHLogs) String() string {
	return fmt.Sprintf("%+v", q.Logs)
}

Steps to reproduce:

Print the result of the above function:

[0xc0001944d0 0xc000194580]
  1. [First Step]
  2. [Second Step]
  3. [and so on...]

Expected behavior: [What you expected to happen]
QueryETHLogs.Logs should be converted into string with the value of them instead of the pointers.
Actual behavior: [What actually happened]
Additional info: [Include gist of relevant config, logs, etc.]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions