aboutsummaryrefslogtreecommitdiffstats
path: root/ethclient/ethclient.go
diff options
context:
space:
mode:
authorSteven Roose <stevenroose@gmail.com>2016-10-28 05:10:24 +0800
committerFelix Lange <fjl@twurst.com>2016-10-28 05:10:24 +0800
commit77703045765343c489ded2f43e3ed0f332c5f148 (patch)
treecbaf77a9d5e7031827d5b77bb3c0dbdcff280378 /ethclient/ethclient.go
parent890ffa05f84a4701646a0ad556d22a536cfd9424 (diff)
downloaddexon-77703045765343c489ded2f43e3ed0f332c5f148.tar
dexon-77703045765343c489ded2f43e3ed0f332c5f148.tar.gz
dexon-77703045765343c489ded2f43e3ed0f332c5f148.tar.bz2
dexon-77703045765343c489ded2f43e3ed0f332c5f148.tar.lz
dexon-77703045765343c489ded2f43e3ed0f332c5f148.tar.xz
dexon-77703045765343c489ded2f43e3ed0f332c5f148.tar.zst
dexon-77703045765343c489ded2f43e3ed0f332c5f148.zip
ethclient: changed TransactionByHash to only pass one argument to api method (#3209)
Fixes #3203
Diffstat (limited to 'ethclient/ethclient.go')
-rw-r--r--ethclient/ethclient.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethclient/ethclient.go b/ethclient/ethclient.go
index aa7796f32..6e2b1378a 100644
--- a/ethclient/ethclient.go
+++ b/ethclient/ethclient.go
@@ -145,7 +145,7 @@ func (ec *Client) HeaderByNumber(ctx context.Context, number *big.Int) (*types.H
// TransactionByHash returns the transaction with the given hash.
func (ec *Client) TransactionByHash(ctx context.Context, hash common.Hash) (*types.Transaction, error) {
var tx *types.Transaction
- err := ec.c.CallContext(ctx, &tx, "eth_getTransactionByHash", hash, false)
+ err := ec.c.CallContext(ctx, &tx, "eth_getTransactionByHash", hash)
if err == nil {
if _, r, _ := tx.SignatureValues(); r == nil {
return nil, fmt.Errorf("server returned transaction without signature")