HomeSource World

internal/ethapi: add CallArgs.ToMessage method (#20854)

Description

internal/ethapi: add CallArgs.ToMessage method (#20854)

ToMessage is used to convert between ethapi.CallArgs and types.Message.
It reduces the length of the DoCall method by about half by abstracting out
the conversion between the CallArgs and the Message. This should improve the
code's maintainability and reusability.

Details

Provenance
William Morriss <wjmelements@gmail.com>Authored on Apr 3 2020, 6:10 PM
GitHub <noreply@github.com>Committed on Apr 3 2020, 6:10 PM
Parents
rGETHbe6078ad831d: all: fix a bunch of inconsequential goroutine leaks (#20667)
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGETH3cf7d2e9a660: internal/ethapi: add CallArgs.ToMessage method (#20854) (authored by William Morriss <wjmelements@gmail.com>).Apr 3 2020, 6:10 PM