From 021177ca9b5df96dbcbf98dd903023048c1e024f Mon Sep 17 00:00:00 2001 From: Bas van Kervel Date: Thu, 22 Dec 2016 14:45:01 +0100 Subject: [PATCH] ethclient: pass ptr when parsing eth_getTransactionByHash result --- ethclient/ethclient.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethclient/ethclient.go b/ethclient/ethclient.go index 4daebda92..8e26dbeb4 100644 --- a/ethclient/ethclient.go +++ b/ethclient/ethclient.go @@ -163,7 +163,7 @@ func (ec *Client) TransactionByHash(ctx context.Context, hash common.Hash) (tx * } else if len(raw) == 0 { return nil, false, ethereum.NotFound } - if err := json.Unmarshal(raw, tx); err != nil { + if err := json.Unmarshal(raw, &tx); err != nil { return nil, false, err } else if _, r, _ := tx.RawSignatureValues(); r == nil { return nil, false, fmt.Errorf("server returned transaction without signature")