aboutsummaryrefslogtreecommitdiffstats
path: root/ethclient
diff options
context:
space:
mode:
Diffstat (limited to 'ethclient')
-rw-r--r--ethclient/ethclient.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethclient/ethclient.go b/ethclient/ethclient.go
index 4daebda92..81a5ae2c3 100644
--- a/ethclient/ethclient.go
+++ b/ethclient/ethclient.go
@@ -185,7 +185,7 @@ func (ec *Client) TransactionCount(ctx context.Context, blockHash common.Hash) (
// TransactionInBlock returns a single transaction at index in the given block.
func (ec *Client) TransactionInBlock(ctx context.Context, blockHash common.Hash, index uint) (*types.Transaction, error) {
var tx *types.Transaction
- err := ec.c.CallContext(ctx, &tx, "eth_getTransactionByBlockHashAndIndex", blockHash, index)
+ err := ec.c.CallContext(ctx, &tx, "eth_getTransactionByBlockHashAndIndex", blockHash, hexutil.Uint64(index))
if err == nil {
if tx == nil {
return nil, ethereum.NotFound
tr>* Bump PORTREVISION for ports depending on the canonical version of GCCGerald Pfeifer2018-07-301-1/+1 * Bump PORTREVISION for ports depending on the canonical version of GCCGerald Pfeifer2017-09-111-1/+1 * Fix build with recent sigc++20Baptiste Daroussin2017-04-051-1/+2 * Remove libintl.so.9 compatibility link that was added in r374303 toTijl Coosemans2016-12-091-1/+1 * Remove ${PORTSDIR}/ from dependencies, Mk and categories a, b, and c.Mathieu Arnold2016-04-011-2/+2 * Cleanup plistBaptiste Daroussin2014-10-201-1/+0