mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
ethclient: simplify TransactionInclusionBlock
This commit is contained in:
parent
ffbb9033ae
commit
91f6f53127
1 changed files with 1 additions and 8 deletions
|
|
@ -202,15 +202,8 @@ func (ec *Client) TransactionInclusionBlock(ctx context.Context, hash common.Has
|
|||
return 0, err
|
||||
} else if json == nil {
|
||||
return 0, ethereum.NotFound
|
||||
} else if _, r, _ := json.tx.RawSignatureValues(); r == nil {
|
||||
return 0, fmt.Errorf("server returned transaction without signature")
|
||||
}
|
||||
setSenderFromServer(json.tx, json.From, json.BlockHash)
|
||||
blockNumber, err = strconv.ParseUint(*json.BlockNumber, 0, 64)
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
return blockNumber, nil
|
||||
return strconv.ParseUint(*json.BlockNumber, 0, 64)
|
||||
}
|
||||
|
||||
// TransactionSender returns the sender address of the given transaction. The transaction
|
||||
|
|
|
|||
Loading…
Reference in a new issue