Skip to content

Commit

Permalink
ethclient: remove use of common.ToHex (#20326)
Browse files Browse the repository at this point in the history
  • Loading branch information
fjl authored and karalabe committed Nov 19, 2019
1 parent 0b63383 commit c013192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethclient/ethclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ func (ec *Client) SendTransaction(ctx context.Context, tx *types.Transaction) er
if err != nil {
return err
}
return ec.c.CallContext(ctx, nil, "eth_sendRawTransaction", common.ToHex(data))
return ec.c.CallContext(ctx, nil, "eth_sendRawTransaction", hexutil.Encode(data))
}

func toCallArg(msg ethereum.CallMsg) interface{} {
Expand Down

0 comments on commit c013192

Please sign in to comment.