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

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

Closed
RevelationOfTuring opened this issue Jan 25, 2021 · 0 comments · Fixed by #748
Closed

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

RevelationOfTuring opened this issue Jan 25, 2021 · 0 comments · Fixed by #748

Comments

@RevelationOfTuring
Copy link

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.]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant