aboutsummaryrefslogtreecommitdiffstats
path: root/ethclient
diff options
context:
space:
mode:
authorBas van Kervel <basvankervel@gmail.com>2016-12-22 21:45:01 +0800
committerBas van Kervel <basvankervel@gmail.com>2016-12-22 21:45:01 +0800
commit021177ca9b5df96dbcbf98dd903023048c1e024f (patch)
treeed3a16ad4779b1f4faea92f246205a07e0890b65 /ethclient
parent6d15d00ac4b5f162737a27dfa6f8e9976383776e (diff)
downloaddexon-021177ca9b5df96dbcbf98dd903023048c1e024f.tar
dexon-021177ca9b5df96dbcbf98dd903023048c1e024f.tar.gz
dexon-021177ca9b5df96dbcbf98dd903023048c1e024f.tar.bz2
dexon-021177ca9b5df96dbcbf98dd903023048c1e024f.tar.lz
dexon-021177ca9b5df96dbcbf98dd903023048c1e024f.tar.xz
dexon-021177ca9b5df96dbcbf98dd903023048c1e024f.tar.zst
dexon-021177ca9b5df96dbcbf98dd903023048c1e024f.zip
ethclient: pass ptr when parsing eth_getTransactionByHash result
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..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")