pr feedback

This commit is contained in:
William Morriss 2020-04-02 14:29:25 -07:00
parent 56462e721a
commit ac0fbc3f30

View file

@ -739,6 +739,7 @@ type CallArgs struct {
Data *hexutil.Bytes `json:"data"` 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 { func (args *CallArgs) ToMessage(globalGasCap *big.Int) types.Message {
// Set sender address or use zero address if none specified. // Set sender address or use zero address if none specified.
var addr common.Address var addr common.Address
@ -770,7 +771,6 @@ func (args *CallArgs) ToMessage(globalGasCap *big.Int) types.Message {
data = []byte(*args.Data) data = []byte(*args.Data)
} }
// Create new call message
msg := types.NewMessage(addr, args.To, 0, value, gas, gasPrice, data, false) msg := types.NewMessage(addr, args.To, 0, value, gas, gasPrice, data, false)
return msg return msg
} }