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 MsgEthermint #713

Closed
RevelationOfTuring opened this issue Jan 13, 2021 · 0 comments
Closed

there are format errors in String() of MsgEthermint #713

RevelationOfTuring opened this issue Jan 13, 2021 · 0 comments

Comments

@RevelationOfTuring
Copy link

RevelationOfTuring commented Jan 13, 2021

System info: [Include Ethermint commit, operating system name, and other relevant details]
there are format errors in String() of MsgEthermint. The result of MsgEthermint.String() will show the pointer of sdk.Int.

func (msg MsgEthermint) String() string {
	return fmt.Sprintf("nonce=%d gasPrice=%d gasLimit=%d recipient=%s amount=%d data=0x%x from=%s",
		msg.AccountNonce, msg.Price, msg.GasLimit, msg.Recipient, msg.Amount, msg.Payload, msg.From)
}

msg.Price and msg.Amount are in type sdk.Int and they will be converted into string with the pointer of them instead of the value.

Steps to reproduce:

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

Expected behavior: [What you expected to happen]

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