Skip to content

Commit d88e992

Browse files
author
lizekun
committed
sendRawTransaction
1 parent d6bd20b commit d88e992

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

geth.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ func (c *Client) EstimateGas(from, to string, value, gasPrice *big.Int) (limit u
3131
"form": from,
3232
"gasPrice": gasPrice.Text(16),
3333
}
34-
err = c.call("proxy", "eth_estimateGas", param, &limit)
34+
limitStr := ""
35+
err = c.call("proxy", "eth_estimateGas", param, &limitStr)
36+
limit, err = strconv.ParseUint(limitStr, 16, 64)
3537
return
3638
}
3739

0 commit comments

Comments
 (0)