mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-23 20:07:16 +00:00
Merge pull request #3486 from bas-vk/txbyhash
ethclient: pass ptr when parsing eth_getTransactionByHash result
This commit is contained in:
commit
891fcd8ce1
@ -163,7 +163,7 @@ func (ec *Client) TransactionByHash(ctx context.Context, hash common.Hash) (tx *
|
|||||||
} else if len(raw) == 0 {
|
} else if len(raw) == 0 {
|
||||||
return nil, false, ethereum.NotFound
|
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
|
return nil, false, err
|
||||||
} else if _, r, _ := tx.RawSignatureValues(); r == nil {
|
} else if _, r, _ := tx.RawSignatureValues(); r == nil {
|
||||||
return nil, false, fmt.Errorf("server returned transaction without signature")
|
return nil, false, fmt.Errorf("server returned transaction without signature")
|
||||||
|
Loading…
Reference in New Issue
Block a user