mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-20 11:46:44 +00:00
ethclient: fix parameters for eth_sendRawTransactionSync
This commit is contained in:
parent
181a3ae9e0
commit
631865ebdd
1 changed files with 4 additions and 2 deletions
|
|
@ -729,9 +729,11 @@ func (ec *Client) SendRawTransactionSync(
|
||||||
rawTx []byte,
|
rawTx []byte,
|
||||||
timeout *time.Duration,
|
timeout *time.Duration,
|
||||||
) (*types.Receipt, error) {
|
) (*types.Receipt, error) {
|
||||||
var ms *hexutil.Uint64
|
var ms *uint64
|
||||||
if timeout != nil {
|
if timeout != nil {
|
||||||
if d := hexutil.Uint64(timeout.Milliseconds()); d > 0 {
|
msInt := timeout.Milliseconds()
|
||||||
|
if msInt > 0 {
|
||||||
|
d := uint64(msInt)
|
||||||
ms = &d
|
ms = &d
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue