From ac0fbc3f300c59a245307f46842907acae686d64 Mon Sep 17 00:00:00 2001 From: William Morriss Date: Thu, 2 Apr 2020 14:29:25 -0700 Subject: [PATCH] pr feedback --- internal/ethapi/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 9b900d0624..7b9f9dafaf 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -739,6 +739,7 @@ type CallArgs struct { Data *hexutil.Bytes `json:"data"` } +// ToMessage converts CallArgs to the Message type used by the core evm func (args *CallArgs) ToMessage(globalGasCap *big.Int) types.Message { // Set sender address or use zero address if none specified. var addr common.Address @@ -770,7 +771,6 @@ func (args *CallArgs) ToMessage(globalGasCap *big.Int) types.Message { data = []byte(*args.Data) } - // Create new call message msg := types.NewMessage(addr, args.To, 0, value, gas, gasPrice, data, false) return msg }