ethclient: fix parameters for eth_sendRawTransactionSync

This commit is contained in:
Milan Saxena 2026-01-27 10:06:17 -08:00
parent 181a3ae9e0
commit 631865ebdd
No known key found for this signature in database
GPG key ID: 58D0249392334E42

View file

@ -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
} }
} }