mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
ethclient: pass ptr when parsing eth_getTransactionByHash result
This commit is contained in:
parent
6d15d00ac4
commit
021177ca9b
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue