Skip to content

Commit 10a1a67

Browse files
author
lizekun
committed
sendRawTransaction
1 parent cba77cb commit 10a1a67

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

geth.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,13 @@ func (c *Client) GasPrice() (price *big.Int, err error) {
3535
return
3636
}
3737

38-
func (c *Client) EstimateGas(from, to string, value, gasPrice *big.Int) (limit uint64, err error) {
38+
func (c *Client) EstimateGas(from, to string, value, gasPrice *big.Int, data []byte) (limit uint64, err error) {
3939
param := M{
4040
"value": value.Text(16),
4141
"to": to,
4242
"form": from,
4343
"gasPrice": gasPrice.Text(16),
44+
"data": string(data),
4445
}
4546
limitStr := ""
4647
err = c.call("proxy", "eth_estimateGas", param, &limitStr)

0 commit comments

Comments
 (0)