aboutsummaryrefslogtreecommitdiffstats
path: root/ethclient
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-01-03 16:56:22 +0800
committerGitHub <noreply@github.com>2017-01-03 16:56:22 +0800
commit891fcd8ce133dd118a4ae96b3bb36e700ae7cc0f (patch)
tree4e5b47c7a667116a19f038ebd190f5c91198a595 /ethclient
parentbd06091874b24d3b74b6db6741089445f4284a84 (diff)
parent021177ca9b5df96dbcbf98dd903023048c1e024f (diff)
downloadgo-tangerine-891fcd8ce133dd118a4ae96b3bb36e700ae7cc0f.tar.gz
go-tangerine-891fcd8ce133dd118a4ae96b3bb36e700ae7cc0f.tar.zst
go-tangerine-891fcd8ce133dd118a4ae96b3bb36e700ae7cc0f.zip
Merge pull request #3486 from bas-vk/txbyhash
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")