mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +00:00
refactor timeout conversion
This commit is contained in:
parent
e203026c4d
commit
4def209692
1 changed files with 2 additions and 3 deletions
|
|
@ -719,9 +719,8 @@ func (ec *Client) SendRawTransactionSync(
|
|||
) (*types.Receipt, error) {
|
||||
var ms *hexutil.Uint64
|
||||
if timeout != nil {
|
||||
if d := timeout.Milliseconds(); d > 0 {
|
||||
ms = new(hexutil.Uint64)
|
||||
*ms = hexutil.Uint64(uint64(d))
|
||||
if d := hexutil.Uint64(timeout.Milliseconds()); d > 0 {
|
||||
ms = &d
|
||||
}
|
||||
}
|
||||
var receipt types.Receipt
|
||||
|
|
|
|||
Loading…
Reference in a new issue