Skip to content

Commit cba77cb

Browse files
author
lizekun
committed
sendRawTransaction
1 parent 67e68c8 commit cba77cb

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
@@ -11,7 +11,9 @@ func (c *Client) GetTransactionCount(address string) (count uint64, err error) {
1111
"address": address,
1212
"tag": "latest",
1313
}
14-
err = c.call("proxy", "eth_getTransactionCount", param, &count)
14+
var countString string
15+
err = c.call("proxy", "eth_getTransactionCount", param, &countString)
16+
count, err = strconv.ParseUint(countString, 0, 0)
1517
return
1618
}
1719

0 commit comments

Comments
 (0)