Skip to content
This repository was archived by the owner on May 21, 2024. It is now read-only.

Commit 7364229

Browse files
fjlelizabethengelman
authored andcommitted
ethclient: remove use of common.ToHex (ethereum#20326)
1 parent c0428c4 commit 7364229

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ethclient/ethclient.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ func (ec *Client) SendTransaction(ctx context.Context, tx *types.Transaction) er
514514
if err != nil {
515515
return err
516516
}
517-
return ec.c.CallContext(ctx, nil, "eth_sendRawTransaction", common.ToHex(data))
517+
return ec.c.CallContext(ctx, nil, "eth_sendRawTransaction", hexutil.Encode(data))
518518
}
519519

520520
func toCallArg(msg ethereum.CallMsg) interface{} {

0 commit comments

Comments
 (0)