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) {
|
) (*types.Receipt, error) {
|
||||||
var ms *hexutil.Uint64
|
var ms *hexutil.Uint64
|
||||||
if timeout != nil {
|
if timeout != nil {
|
||||||
if d := timeout.Milliseconds(); d > 0 {
|
if d := hexutil.Uint64(timeout.Milliseconds()); d > 0 {
|
||||||
ms = new(hexutil.Uint64)
|
ms = &d
|
||||||
*ms = hexutil.Uint64(uint64(d))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var receipt types.Receipt
|
var receipt types.Receipt
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue