ethclient: remove use of common.ToHex (#20326)

pull/20330/head
Felix Lange 5 years ago committed by Péter Szilágyi
parent 0b6338321f
commit c013192ba7
  1. 2
      ethclient/ethclient.go

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

Loading…
Cancel
Save