mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
pr feedback
This commit is contained in:
parent
56462e721a
commit
ac0fbc3f30
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue