good morning!!!!

Skip to content
Snippets Groups Projects
Commit 021177ca authored by Bas van Kervel's avatar Bas van Kervel
Browse files

ethclient: pass ptr when parsing eth_getTransactionByHash result

parent 6d15d00a
No related branches found
No related tags found
Loading
......@@ -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")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment