diff options
author | Bas van Kervel <basvankervel@gmail.com> | 2016-12-22 21:45:01 +0800 |
---|---|---|
committer | Bas van Kervel <basvankervel@gmail.com> | 2016-12-22 21:45:01 +0800 |
commit | 021177ca9b5df96dbcbf98dd903023048c1e024f (patch) | |
tree | ed3a16ad4779b1f4faea92f246205a07e0890b65 /ethclient | |
parent | 6d15d00ac4b5f162737a27dfa6f8e9976383776e (diff) | |
download | dexon-021177ca9b5df96dbcbf98dd903023048c1e024f.tar.gz dexon-021177ca9b5df96dbcbf98dd903023048c1e024f.tar.zst dexon-021177ca9b5df96dbcbf98dd903023048c1e024f.zip |
ethclient: pass ptr when parsing eth_getTransactionByHash result
Diffstat (limited to 'ethclient')
-rw-r--r-- | ethclient/ethclient.go | 2 |
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") |